Save 16 bytes
This commit is contained in:
@@ -363,6 +363,7 @@ void channelMoveSwitch(void) {
|
||||
if (IS_MR_CHANNEL(gTxVfo->CHANNEL_SAVE)) { // user is entering channel number
|
||||
uint16_t Channel = 0;
|
||||
|
||||
/*
|
||||
switch (gInputBoxIndex)
|
||||
{
|
||||
case 1:
|
||||
@@ -375,6 +376,11 @@ void channelMoveSwitch(void) {
|
||||
Channel = (gInputBox[0] * 100) + (gInputBox[1] * 10) + gInputBox[2];
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
||||
for (uint8_t i = 0; i < gInputBoxIndex; i++) {
|
||||
Channel = (Channel * 10) + gInputBox[i];
|
||||
}
|
||||
|
||||
if ((Channel == 0) && (gInputBoxIndex != 3)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user