mirror of
https://github.com/lora-aprs/LoRa_APRS_Tracker.git
synced 2025-12-06 07:12:15 +01:00
added precision option to config
This commit is contained in:
parent
8522c65962
commit
c3403ea7c0
|
|
@ -43,7 +43,7 @@ Configuration ConfigurationManagement::readConfiguration()
|
||||||
if(data.containsKey("callsign"))
|
if(data.containsKey("callsign"))
|
||||||
conf.callsign = data["callsign"].as<String>();
|
conf.callsign = data["callsign"].as<String>();
|
||||||
conf.debug = data["debug"] | false;
|
conf.debug = data["debug"] | false;
|
||||||
|
conf.enhance_precision = data["enhance_precision"] | false;
|
||||||
if(data.containsKey("beacon") && data["beacon"].containsKey("message"))
|
if(data.containsKey("beacon") && data["beacon"].containsKey("message"))
|
||||||
conf.beacon.message = data["beacon"]["message"].as<String>();
|
conf.beacon.message = data["beacon"]["message"].as<String>();
|
||||||
conf.beacon.timeout = data["beacon"]["timeout"] | 1;
|
conf.beacon.timeout = data["beacon"]["timeout"] | 1;
|
||||||
|
|
@ -84,6 +84,7 @@ void ConfigurationManagement::writeConfiguration(Configuration conf)
|
||||||
|
|
||||||
data["callsign"] = conf.callsign;
|
data["callsign"] = conf.callsign;
|
||||||
data["debug"] = conf.debug;
|
data["debug"] = conf.debug;
|
||||||
|
data["enhance_precision"] = conf.enhance_precision;
|
||||||
data["beacon"]["message"] = conf.beacon.message;
|
data["beacon"]["message"] = conf.beacon.message;
|
||||||
data["beacon"]["timeout"] = conf.beacon.timeout;
|
data["beacon"]["timeout"] = conf.beacon.timeout;
|
||||||
data["beacon"]["symbol"] = conf.beacon.symbol;
|
data["beacon"]["symbol"] = conf.beacon.symbol;
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ public:
|
||||||
|
|
||||||
String callsign;
|
String callsign;
|
||||||
bool debug;
|
bool debug;
|
||||||
|
bool enhance_precision;
|
||||||
Beacon beacon;
|
Beacon beacon;
|
||||||
Smart_Beacon smart_beacon;
|
Smart_Beacon smart_beacon;
|
||||||
LoRa lora;
|
LoRa lora;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue