Issue #592 - All boards will have this feature available, it costs only

50bytes on stock board (I saved more in this same branch)
This commit is contained in:
Bertrand Songis
2014-02-06 14:43:43 +01:00
parent 4a20329b2b
commit cae4d1ecf6
10 changed files with 67 additions and 67 deletions
+1 -3
View File
@@ -1390,11 +1390,9 @@ bool getSwitch(int8_t swtch)
result = POT_POSITION(cs_idx-SWSRC_P11);
}
#endif
#if defined(CPUARM)
else if (cs_idx <= SWSRC_LAST_TRIM) {
result = readTrims() & (1 << (cs_idx-SWSRC_FIRST_TRIM));
result = trimDown(cs_idx-SWSRC_FIRST_TRIM);
}
#endif
#if ROTARY_ENCODERS > 0
else if (cs_idx == SWSRC_REa) {
result = REA_DOWN();