Missing menu itema and compilation fix
This commit is contained in:
@@ -116,7 +116,7 @@ bool menuRadioSetup(event_t event)
|
||||
CASE_HAPTIC(LABEL(HAPTIC)) CASE_HAPTIC(0) CASE_HAPTIC(0) CASE_HAPTIC(0)
|
||||
LABEL(ALARMS), 0, 0, 0,
|
||||
LABEL(BACKLIGHT), 0, 0, 0, 0, 0,
|
||||
CASE_GPS(LABEL(GPS)) CASE_GPS(0) CASE_GPS(0)
|
||||
CASE_GPS(LABEL(GPS)) CASE_GPS(0) CASE_GPS(0) CASE_GPS(0)
|
||||
CASE_PXX(0) 0, 0, 0, 0, 0, 0, 1/*to force edit mode*/ });
|
||||
|
||||
if (event == EVT_ENTRY) {
|
||||
|
||||
@@ -42,9 +42,8 @@ void readRtc()
|
||||
g_rtcTime = gmktime(&utm);
|
||||
}
|
||||
|
||||
void writeRtc(gtm* ptr)
|
||||
void writeRtc(const gtm* ptr)
|
||||
{
|
||||
g_rtcTime = gmktime(ptr);
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
uint8_t buffer[7];
|
||||
uint8_t read_buffer[7];
|
||||
@@ -62,7 +61,6 @@ void writeRtc(gtm* ptr)
|
||||
|
||||
void rtcSetTime(const struct gtm * t)
|
||||
{
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
writeRtc(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user