[X7] SH fix - #4143

This commit is contained in:
Bertrand Songis
2016-12-17 23:09:42 +01:00
parent ad8df76c37
commit 00ab6e2294
6 changed files with 54 additions and 40 deletions
-2
View File
@@ -150,8 +150,6 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
int16_t checkIncDec(event_t event, int16_t i_pval, int16_t i_min, int16_t i_max, uint8_t i_flags=0);
#endif
int8_t checkIncDecMovedSwitch(int8_t val);
#if defined(CPUM64)
int8_t checkIncDecModel(event_t event, int8_t i_val, int8_t i_min, int8_t i_max);
int8_t checkIncDecModelZero(event_t event, int8_t i_val, int8_t i_max);
-16
View File
@@ -35,22 +35,6 @@ int16_t p1valdiff;
int8_t p2valdiff;
#endif
#if defined(AUTOSWITCH)
int8_t checkIncDecMovedSwitch(int8_t val)
{
if (s_editMode>0) {
int8_t swtch = getMovedSwitch();
if (swtch) {
if (IS_CONFIG_TOGGLE(swtch) && swtch==val)
val = -val;
else
val = swtch;
}
}
return val;
}
#endif
int8_t checkIncDec_Ret;
#if defined(PCBX7)