changed encoder pos from int to long to fix problems setting x/y/z/e stepps_per_mm using the lcd menu

This commit is contained in:
MaikStohn
2012-05-11 15:19:09 +02:00
parent b657a18449
commit 1efe9ab497
2 changed files with 43 additions and 43 deletions

View File

@ -70,7 +70,7 @@
void showAxisMove();
void showSD();
bool force_lcd_update;
int lastencoderpos;
long lastencoderpos;
int8_t lineoffset;
int8_t lastlineoffset;
@ -79,11 +79,11 @@
bool tune;
private:
FORCE_INLINE void updateActiveLines(const uint8_t &maxlines,volatile int &encoderpos)
FORCE_INLINE void updateActiveLines(const uint8_t &maxlines,volatile long &encoderpos)
{
if(linechanging) return; // an item is changint its value, do not switch lines hence
lastlineoffset=lineoffset;
int curencoderpos=encoderpos;
long curencoderpos=encoderpos;
force_lcd_update=false;
if( (abs(curencoderpos-lastencoderpos)<lcdslow) )
{