Cosmetics

This commit is contained in:
3djc
2021-01-19 14:34:43 +01:00
parent 957631a95b
commit 925af297e5
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH) #if defined(AUTOSWITCH)
else { else {
uint8_t swtch = abs(getMovedSwitch()); uint8_t swtch = abs(getMovedSwitch());
if (swtch && !IS_SWITCH_MULTPOS(swtch)) { if (swtch && !IS_SWITCH_MULTIPOS(swtch)) {
newval = switchToMix(swtch); newval = switchToMix(swtch);
} }
} }
@@ -137,7 +137,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH) #if defined(AUTOSWITCH)
else { else {
unsigned int swtch = abs(getMovedSwitch()); unsigned int swtch = abs(getMovedSwitch());
if (swtch && !IS_SWITCH_MULTPOS(swtch)) { if (swtch && !IS_SWITCH_MULTIPOS(swtch)) {
newval = switchToMix(swtch); newval = switchToMix(swtch);
} }
} }
+1 -1
View File
@@ -106,7 +106,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH) #if defined(AUTOSWITCH)
else { else {
unsigned int swtch = abs(getMovedSwitch()); unsigned int swtch = abs(getMovedSwitch());
if (swtch && !IS_SWITCH_MULTPOS(swtch)) { if (swtch && !IS_SWITCH_MULTIPOS(swtch)) {
newval = switchToMix(swtch); newval = switchToMix(swtch);
} }
} }
+1 -1
View File
@@ -173,7 +173,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH) #if defined(AUTOSWITCH)
else { else {
unsigned int swtch = abs(getMovedSwitch()); unsigned int swtch = abs(getMovedSwitch());
if (swtch && !IS_SWITCH_MULTPOS(swtch)) { if (swtch && !IS_SWITCH_MULTIPOS(swtch)) {
newval = switchToMix(swtch); newval = switchToMix(swtch);
} }
} }
@@ -166,7 +166,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH) #if defined(AUTOSWITCH)
else { else {
uint8_t swtch = abs(getMovedSwitch()); uint8_t swtch = abs(getMovedSwitch());
if (swtch && !IS_SWITCH_MULTPOS(swtch)) { if (swtch && !IS_SWITCH_MULTIPOS(swtch)) {
newval = switchToMix(swtch); newval = switchToMix(swtch);
} }
} }
+1 -1
View File
@@ -557,7 +557,7 @@ bool isInputRecursive(int index)
} }
#if defined(AUTOSOURCE) #if defined(AUTOSOURCE)
constexpr int MULTIPOS_STEP_SIZE = (2 * RESX) / (XPOTS_MULTIPOS_COUNT + 1); constexpr int MULTIPOS_STEP_SIZE = (2 * RESX) / (XPOTS_MULTIPOS_COUNT - 1);
int8_t getMovedSource(GET_MOVED_SOURCE_PARAMS) int8_t getMovedSource(GET_MOVED_SOURCE_PARAMS)
{ {
+2 -2
View File
@@ -283,9 +283,9 @@ void memswap(void * a, void * b, uint8_t size);
#endif #endif
#if NUM_XPOTS > 0 #if NUM_XPOTS > 0
#define IS_SWITCH_MULTPOS(x) (SWSRC_FIRST_MULTIPOS_SWITCH <= (x) && (x) <= SWSRC_LAST_MULTIPOS_SWITCH) #define IS_SWITCH_MULTIPOS(x) (SWSRC_FIRST_MULTIPOS_SWITCH <= (x) && (x) <= SWSRC_LAST_MULTIPOS_SWITCH)
#else #else
#define IS_SWITCH_MULTPOS(x) (false) #define IS_SWITCH_MULTIPOS(x) (false)
#endif #endif
#if defined(PWR_BUTTON_PRESS) #if defined(PWR_BUTTON_PRESS)