v1.2: Settings toggles, flight logbook, local time, WiFi auto-reconnect, metric units
This commit is contained in:
@@ -1,17 +1,8 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
// Einfacher key=value Einstellungs-Speicher in /Flightradar_cyd/config.txt.
|
||||
// Neue Einstellungen koennen spaeter einfach als weitere getX()/setX()-Paare
|
||||
// dazu kommen, ohne das Dateiformat zu aendern (unbekannte Zeilen werden
|
||||
// beim Laden ignoriert).
|
||||
namespace SettingsStore {
|
||||
|
||||
// Liest config.txt von der SD-Karte (falls vorhanden). Werte, die nicht
|
||||
// in der Datei stehen, behalten ihren Standardwert.
|
||||
void load();
|
||||
|
||||
// Schreibt die aktuellen Werte zurueck auf die SD-Karte.
|
||||
void save();
|
||||
|
||||
uint8_t rangeIndex();
|
||||
@@ -19,4 +10,13 @@ namespace SettingsStore {
|
||||
|
||||
bool displayInverted();
|
||||
void setDisplayInverted(bool inverted);
|
||||
|
||||
bool emergencyAlertEnabled();
|
||||
void setEmergencyAlertEnabled(bool on);
|
||||
|
||||
bool proximityAlertEnabled();
|
||||
void setProximityAlertEnabled(bool on);
|
||||
|
||||
bool flightLogbookEnabled();
|
||||
void setFlightLogbookEnabled(bool on);
|
||||
}
|
||||
Reference in New Issue
Block a user