Merge pull request #271 from just6979/noaa_fix

NOAA mode fixes
This commit is contained in:
Armel FAUVEAU
2024-10-10 03:02:13 +02:00
committed by GitHub
4 changed files with 22 additions and 3 deletions

View File

@@ -210,9 +210,9 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
gEeprom.ScreenChannel[Vfo] = gEeprom.NoaaChannel[gEeprom.TX_VFO];
}
else {
gEeprom.ScreenChannel[Vfo] = gEeprom.FreqChannel[gEeprom.TX_VFO];
gEeprom.ScreenChannel[Vfo] = gEeprom.MrChannel[gEeprom.TX_VFO];
#ifdef ENABLE_VOICE
gAnotherVoiceID = VOICE_ID_FREQUENCY_MODE;
gAnotherVoiceID = VOICE_ID_CHANNEL_MODE;
#endif
}
gRequestSaveVFO = true;

View File

@@ -298,6 +298,23 @@ const uint8_t BITMAP_PowerUser[3] =
0b00001000,
};
#ifdef ENABLE_NOAA
const uint8_t BITMAP_NOAA[12] =
{ // "WX"
0b00000000,
0b01111111,
0b00100000,
0b00011000,
0b00100000,
0b01111111,
0b00000000,
0b01100011,
0b00010100,
0b00001000,
0b00010100,
0b01100011
};
#endif
#ifndef ENABLE_CUSTOM_MENU_LAYOUT
const uint8_t BITMAP_CurrentIndicator[8] = {

View File

@@ -41,6 +41,8 @@ extern const uint8_t BITMAP_ScanListE[7];
extern const uint8_t BITMAP_PowerUser[3];
extern const uint8_t BITMAP_compand[6];
extern const uint8_t BITMAP_NOAA[12];
#ifndef ENABLE_CUSTOM_MENU_LAYOUT
extern const uint8_t BITMAP_CurrentIndicator[8];
#endif

View File

@@ -79,7 +79,7 @@ void FUNCTION_Init(void)
gNOAACountdown_10ms = 0;
if (IS_NOAA_CHANNEL(gRxVfo->CHANNEL_SAVE)) {
gCurrentCodeType = CODE_TYPE_CONTINUOUS_TONE;
gCurrentCodeType = CODE_TYPE_OFF;
}
#endif