Missing menu itema and compilation fix

This commit is contained in:
Damjan Adamic
2016-09-02 23:25:05 +02:00
parent 874483ba55
commit 61e6e63856
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ bool menuRadioSetup(event_t event)
CASE_HAPTIC(LABEL(HAPTIC)) CASE_HAPTIC(0) CASE_HAPTIC(0) CASE_HAPTIC(0) CASE_HAPTIC(LABEL(HAPTIC)) CASE_HAPTIC(0) CASE_HAPTIC(0) CASE_HAPTIC(0)
LABEL(ALARMS), 0, 0, 0, LABEL(ALARMS), 0, 0, 0,
LABEL(BACKLIGHT), 0, 0, 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*/ }); CASE_PXX(0) 0, 0, 0, 0, 0, 0, 1/*to force edit mode*/ });
if (event == EVT_ENTRY) { if (event == EVT_ENTRY) {
@@ -42,9 +42,8 @@ void readRtc()
g_rtcTime = gmktime(&utm); 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 g_ms100 = 0; // start of next second begins now
uint8_t buffer[7]; uint8_t buffer[7];
uint8_t read_buffer[7]; uint8_t read_buffer[7];
@@ -62,7 +61,6 @@ void writeRtc(gtm* ptr)
void rtcSetTime(const struct gtm * t) void rtcSetTime(const struct gtm * t)
{ {
g_ms100 = 0; // start of next second begins now
writeRtc(t); writeRtc(t);
} }