Implement browser-based voice notes recording, standby flicking remembrance candle, and favorite memory pinning
This commit is contained in:
@@ -14,6 +14,7 @@ int g_tributeAlarmHour = 19;
|
||||
int g_tributeAlarmMinute = 0;
|
||||
int g_timezoneOffset = 0;
|
||||
bool g_timeSynchronized = false;
|
||||
int g_favoriteMemoryId = -1;
|
||||
|
||||
// ── SD Init ───────────────────────────────────────────────────────────────────
|
||||
void SD_Init() {
|
||||
@@ -87,6 +88,10 @@ bool Config_Load() {
|
||||
g_currentIndex = atoi(line + 6);
|
||||
continue;
|
||||
}
|
||||
if (strncmp(line, "FAVORITE|", 9) == 0) {
|
||||
g_favoriteMemoryId = atoi(line + 9);
|
||||
continue;
|
||||
}
|
||||
if (strncmp(line, "ALARM|", 6) == 0) {
|
||||
// Parse: ALARM|enabled|hour|minute|timezone_offset
|
||||
char* tok = strtok(line + 6, "|");
|
||||
@@ -139,6 +144,7 @@ bool Config_Save() {
|
||||
}
|
||||
f.printf("VOLUME|%d\n", g_volume);
|
||||
f.printf("INDEX|%d\n", g_currentIndex);
|
||||
f.printf("FAVORITE|%d\n", g_favoriteMemoryId);
|
||||
f.printf("ALARM|%d|%d|%d|%d\n", g_tributeAlarmEnabled ? 1 : 0, g_tributeAlarmHour, g_tributeAlarmMinute, g_timezoneOffset);
|
||||
for (int i = 0; i < g_memoryCount; i++) {
|
||||
Memory& m = g_memories[i];
|
||||
|
||||
Reference in New Issue
Block a user