mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2024-11-27 08:59:52 +08:00
Added even more random functions.
This commit is contained in:
parent
ad5fbff302
commit
a3aa48eb0c
61
app.c
61
app.c
@ -1583,6 +1583,67 @@ void FUN_00005830(bool bFlag)
|
||||
}
|
||||
}
|
||||
|
||||
void FUN_00005770(void)
|
||||
{
|
||||
if (gCurrentFunction != FUNCTION_2) {
|
||||
RADIO_ConfigureTX();
|
||||
if (gInfoCHAN_A->CHANNEL_SAVE >= 207 && gIsNoaaMode) {
|
||||
gNoaaChannel = gInfoCHAN_A->CHANNEL_SAVE - 207;
|
||||
}
|
||||
RADIO_SetupRegisters(true);
|
||||
FUN_000069f8(FUNCTION_2);
|
||||
return;
|
||||
}
|
||||
if (gStepDirection != 0) {
|
||||
ScanPauseDelayIn10msec = 500;
|
||||
gSystickFlag9 = false;
|
||||
gScanPauseMode = 1;
|
||||
}
|
||||
if (gEeprom.DUAL_WATCH == DUAL_WATCH_OFF && gIsNoaaMode) {
|
||||
g_20000356 = 500;
|
||||
gSystickFlag8 = false;
|
||||
}
|
||||
RADIO_SetupRegisters(true);
|
||||
if (gFmMute == true) {
|
||||
FUN_000059b4();
|
||||
gRequestDisplayScreen = DISPLAY_FM;
|
||||
} else {
|
||||
gRequestDisplayScreen = gScreenToDisplay;
|
||||
}
|
||||
}
|
||||
|
||||
void FUN_000056d8(void)
|
||||
{
|
||||
if (gCurrentFunction != FUNCTION_TRANSMIT && gCurrentFunction != FUNCTION_2) {
|
||||
if (gFmMute) {
|
||||
FM_TurnOff();
|
||||
gNumberOffset = 0;
|
||||
g_200003B6 = 0x50;
|
||||
g_20000398 = 1;
|
||||
gRequestDisplayScreen = DISPLAY_MAIN;
|
||||
return;
|
||||
}
|
||||
RADIO_ConfigureTX();
|
||||
RADIO_SetupRegisters(true);
|
||||
FUN_000059b4();
|
||||
gNumberOffset = 0;
|
||||
gRequestDisplayScreen = DISPLAY_FM;
|
||||
}
|
||||
}
|
||||
|
||||
void FUN_000056a0(int param_1)
|
||||
{
|
||||
gNumberOffset = 0;
|
||||
if (param_1 == 1) {
|
||||
g_20000383 = 3;
|
||||
} else {
|
||||
g_20000383 = 1;
|
||||
}
|
||||
g_20000422 = 0;
|
||||
g_200003A0 = 1;
|
||||
gRequestDisplayScreen = DISPLAY_MAIN;
|
||||
}
|
||||
|
||||
static void APP_ProcessKey(KEY_Code_t CurrentKey, bool bKeyPressed, bool bKeyHeld)
|
||||
{
|
||||
if (gCurrentFunction == FUNCTION_POWER_SAVE) {
|
||||
|
2
misc.c
2
misc.c
@ -78,6 +78,7 @@ uint8_t gKeypadLocked;
|
||||
uint8_t g_20000398;
|
||||
uint8_t g_2000039D;
|
||||
uint8_t g_2000039E;
|
||||
uint8_t g_200003A0;
|
||||
bool g_200003A5;
|
||||
bool gFlagSaveSettings;
|
||||
bool g_200003A7;
|
||||
@ -112,6 +113,7 @@ uint8_t g_20000416;
|
||||
uint32_t g_20000418;
|
||||
uint8_t g_2000041F;
|
||||
uint8_t g_20000420;
|
||||
uint16_t g_20000422;
|
||||
uint8_t g_20000427;
|
||||
bool gKeyBeingHeld;
|
||||
bool gPttIsPressed;
|
||||
|
2
misc.h
2
misc.h
@ -87,6 +87,7 @@ extern uint8_t g_20000398;
|
||||
extern uint8_t g_2000039D;
|
||||
extern uint8_t g_2000039E;
|
||||
extern uint8_t gKeypadLocked;
|
||||
extern uint8_t g_200003A0;
|
||||
extern bool g_200003A5;
|
||||
extern bool gFlagSaveSettings;
|
||||
extern bool g_200003A7;
|
||||
@ -120,6 +121,7 @@ extern uint8_t g_20000416;
|
||||
extern uint32_t g_20000418;
|
||||
extern uint8_t g_2000041F;
|
||||
extern uint8_t g_20000420;
|
||||
extern uint16_t g_20000422;
|
||||
extern uint8_t g_20000427;
|
||||
extern bool gKeyBeingHeld;
|
||||
extern bool gPttIsPressed;
|
||||
|
Loading…
Reference in New Issue
Block a user