forked from mirror/uv-k5-firmware
Fixed variables to match the original.
This commit is contained in:
parent
c0a9151100
commit
d4eac340fe
2
app/fm.c
2
app/fm.c
@ -32,7 +32,7 @@
|
||||
uint16_t gFM_Channels[20];
|
||||
bool gFmRadioMode;
|
||||
uint8_t gFmRadioCountdown;
|
||||
volatile uint16_t gFmPlayCountdown = 1;
|
||||
volatile uint16_t gFmPlayCountdown;
|
||||
volatile int8_t gFM_Step;
|
||||
bool gFM_AutoScan;
|
||||
uint8_t gFM_ChannelPosition;
|
||||
|
@ -34,7 +34,7 @@ uint8_t gScanChannel;
|
||||
uint32_t gScanFrequency;
|
||||
uint8_t gScanPauseMode;
|
||||
SCAN_CssState_t gScanCssState;
|
||||
volatile bool gScheduleScanListen;
|
||||
volatile bool gScheduleScanListen = true;
|
||||
volatile uint16_t ScanPauseDelayIn10msec;
|
||||
uint8_t gScanProgressIndicator;
|
||||
uint8_t gScanHitCount;
|
||||
|
@ -141,7 +141,7 @@ static union {
|
||||
|
||||
static uint32_t Timestamp;
|
||||
static uint16_t gUART_WriteIndex;
|
||||
static bool bIsEncrypted;
|
||||
static bool bIsEncrypted = true;
|
||||
|
||||
static void SendReply(void *pReply, uint16_t Size)
|
||||
{
|
||||
|
@ -20,8 +20,8 @@
|
||||
#include "driver/keyboard.h"
|
||||
#include "driver/systick.h"
|
||||
|
||||
KEY_Code_t gKeyReading0;
|
||||
KEY_Code_t gKeyReading1;
|
||||
KEY_Code_t gKeyReading0 = KEY_INVALID;
|
||||
KEY_Code_t gKeyReading1 = KEY_INVALID;
|
||||
uint16_t gDebounceCounter;
|
||||
bool gWasFKeyPressed;
|
||||
|
||||
|
15
misc.c
15
misc.c
@ -27,7 +27,6 @@ bool gSetting_500TX;
|
||||
bool gSetting_350EN;
|
||||
uint8_t gSetting_F_LOCK;
|
||||
bool gSetting_ScrambleEnable;
|
||||
uint8_t gSetting_F_LOCK;
|
||||
|
||||
const uint32_t gDefaultAesKey[4] = {
|
||||
0x4AA5CC60,
|
||||
@ -54,9 +53,9 @@ uint16_t gEEPROM_1F8C;
|
||||
uint8_t gMR_ChannelAttributes[207];
|
||||
|
||||
volatile bool gNextTimeslice500ms;
|
||||
volatile uint16_t gBatterySaveCountdown;
|
||||
volatile uint16_t gBatterySaveCountdown = 1000;
|
||||
volatile uint16_t gDualWatchCountdown;
|
||||
volatile uint16_t gTxTimerCountdown = 1000;
|
||||
volatile uint16_t gTxTimerCountdown;
|
||||
volatile uint16_t g_20000342;
|
||||
volatile uint16_t gNOAA_Countdown;
|
||||
bool gEnableSpeaker;
|
||||
@ -90,7 +89,7 @@ bool gFlagAcceptSetting;
|
||||
bool gFlagRefreshSetting;
|
||||
bool gFlagSaveVfo;
|
||||
bool gFlagSaveSettings;
|
||||
uint8_t gFlagSaveChannel;
|
||||
uint8_t gFlagSaveChannel = 0xFF;
|
||||
bool gFlagSaveFM;
|
||||
uint8_t gDTMF_RequestPending;
|
||||
bool g_CDCSS_Lost;
|
||||
@ -105,7 +104,7 @@ uint16_t g_200003B6;
|
||||
uint16_t gVoxPauseCountdown;
|
||||
volatile uint16_t gFlashLightBlinkCounter;
|
||||
bool gFlagEndTransmission;
|
||||
uint8_t gLowBatteryCountdown;
|
||||
uint16_t gLowBatteryCountdown;
|
||||
uint8_t gNextMrChannel;
|
||||
ReceptionMode_t gRxReceptionMode;
|
||||
bool g_20000413;
|
||||
@ -141,8 +140,8 @@ volatile bool gTxTimeoutReached;
|
||||
volatile bool gNextTimeslice40ms;
|
||||
volatile bool gSchedulePowerSave;
|
||||
volatile bool gBatterySaveCountdownExpired;
|
||||
volatile bool gScheduleDualWatch;
|
||||
volatile bool gScheduleNOAA;
|
||||
volatile bool gScheduleDualWatch = true;
|
||||
volatile bool gScheduleNOAA = true;
|
||||
volatile bool gSystickFlag10;
|
||||
volatile bool gScheduleFM;
|
||||
|
||||
@ -150,7 +149,7 @@ uint16_t gCurrentRSSI;
|
||||
|
||||
volatile int8_t gStepDirection;
|
||||
|
||||
bool gIsLocked;
|
||||
uint8_t gIsLocked = 0xFF;
|
||||
|
||||
// --------
|
||||
|
||||
|
4
misc.h
4
misc.h
@ -156,7 +156,7 @@ extern uint16_t g_200003B6;
|
||||
extern uint16_t gVoxPauseCountdown;
|
||||
extern volatile uint16_t gFlashLightBlinkCounter;
|
||||
extern bool gFlagEndTransmission;
|
||||
extern uint8_t gLowBatteryCountdown;
|
||||
extern uint16_t gLowBatteryCountdown;
|
||||
extern uint8_t gNextMrChannel;
|
||||
extern ReceptionMode_t gRxReceptionMode;
|
||||
extern bool g_20000413;
|
||||
@ -202,7 +202,7 @@ extern uint16_t gCurrentRSSI;
|
||||
|
||||
extern volatile int8_t gStepDirection;
|
||||
|
||||
extern bool gIsLocked;
|
||||
extern uint8_t gIsLocked;
|
||||
|
||||
// --------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user