use named constants instead of magic numbers.

This commit is contained in:
rotorman
2021-09-12 17:53:35 +02:00
parent d949815b46
commit 322ad843ab
+2 -2
View File
@@ -1073,8 +1073,8 @@ void getADC()
#if defined(RADIO_TX16S) #if defined(RADIO_TX16S)
switch (x) switch (x)
{ {
case 9: case EXT3:
case 10: case EXT4:
v = getAnalogValue(x-7) >> (1 - ANALOG_SCALE); v = getAnalogValue(x-7) >> (1 - ANALOG_SCALE);
break; break;
default: default: