[MEGA2560/GRUVIN9X] Overflow in Custom Functions switch (no ON and One)

This commit is contained in:
bsongis
2015-03-03 20:14:23 +01:00
parent 4c0515ab91
commit 01cd86f6f6
20 changed files with 58 additions and 149 deletions
+1 -15
View File
@@ -144,20 +144,6 @@ bool switchState(EnumKeys enuk)
result = !(PINC & (1<<INP_C_ID2));
break;
/*#if 0
case SW_ID3:
result = (calibratedStick[POT1+EXTRA_3POS-1] < 0);
break;
case SW_ID4:
result = (calibratedStick[POT1+EXTRA_3POS-1] == 0);
break;
case SW_ID5:
result = (calibratedStick[POT1+EXTRA_3POS-1] > 0);
break;
#endif */
case SW_GEA:
result = !(PING & (1<<INP_G_Gear));
break;
@@ -246,4 +232,4 @@ ISR(INT3_vect) // Arduino2560 IO18 (portD pin3)
uint8_t input = (PIND & 0x0C);
if (input == 0 || input == 0x0C) incRotaryEncoder(1, +1);
}