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