use named constants instead of magic numbers.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user