From 895d83e9bc41c3b62b488b9a078e418df0332ec6 Mon Sep 17 00:00:00 2001 From: OneOfEleven Date: Thu, 28 Sep 2023 23:42:57 +0100 Subject: [PATCH] Fix channel name padding byte to 0x00 --- app/menu.c | 2 +- firmware.bin | Bin 57816 -> 57816 bytes firmware.packed.bin | Bin 57834 -> 57834 bytes radio.c | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/menu.c b/app/menu.c index 0892870..a22f6fe 100644 --- a/app/menu.c +++ b/app/menu.c @@ -439,7 +439,7 @@ void MENU_AcceptSetting(void) } // save the channel name - memset(gTxVfo->Name, 0xff, sizeof(gTxVfo->Name)); + memset(gTxVfo->Name, 0, sizeof(gTxVfo->Name)); memmove(gTxVfo->Name, edit, 10); SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_CHANNEL, gTxVfo, 3); gFlagReconfigureVfos = true; diff --git a/firmware.bin b/firmware.bin index 137053372d7239b0f26a4e2d42701529bb12e92b..369d702cea17a2693af183df09844016fb1c3cb5 100644 GIT binary patch delta 44 vcmca{nEA$G<_%8qj0~HdaxwV3x`pdPxtq=IEMf%!Zh{XW delta 44 vcmca{nEA$G<_%8qjQ=+~$KS0HOEEGxvP?GO;>Pi1O)Ah+03ipYR?$GIXM1qjabtp^|nwuo7sO)79Wf)JX03I R6?Wxd^jTZf+BasZst{RwP#$iIXM1qjo7`zr7dwbwzL19EIt@pct(pe SBIN$zh|O+y7O^rZdjJ3{7#fuT diff --git a/radio.c b/radio.c index 8d90251..b86cf40 100644 --- a/radio.c +++ b/radio.c @@ -391,7 +391,7 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure memset(gEeprom.VfoInfo[VFO].Name, 0, sizeof(gEeprom.VfoInfo[VFO].Name)); if (IS_MR_CHANNEL(Channel)) - { // 16 bytes allocated to the channel name but only 10 used + { // 16 bytes allocated to the channel name but only 10 used, the rest are 0's EEPROM_ReadBuffer(0x0F50 + (Channel * 16), gEeprom.VfoInfo[VFO].Name + 0, 8); EEPROM_ReadBuffer(0x0F58 + (Channel * 16), gEeprom.VfoInfo[VFO].Name + 8, 2); } @@ -417,7 +417,7 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure if (gEeprom.VfoInfo[VFO].AM_mode) { // freq/chan is in AM mode gEeprom.VfoInfo[VFO].SCRAMBLING_TYPE = 0; - gEeprom.VfoInfo[VFO].DTMF_DECODING_ENABLE = false; // no reason to disable DTMF decoding, aircraft use DTMF on SSB + gEeprom.VfoInfo[VFO].DTMF_DECODING_ENABLE = false; // no reason to disable DTMF decoding, aircraft use it on SSB gEeprom.VfoInfo[VFO].freq_config_RX.CodeType = CODE_TYPE_OFF; gEeprom.VfoInfo[VFO].freq_config_TX.CodeType = CODE_TYPE_OFF; }