convert to tabs

This commit is contained in:
Peter Buchegger 2021-03-06 23:51:49 +01:00
parent da86e89fa8
commit 342ed85895
2 changed files with 15 additions and 15 deletions

View file

@ -1,17 +1,17 @@
{ {
"callsign":"NOCALL-10", "callsign":"NOCALL-10",
"debug": false, "debug": false,
"beacon": "beacon":
{ {
"message":"LoRa Tracker, Info: github.com/lora-aprs/LoRa_APRS_Tracker", "message":"LoRa Tracker, Info: github.com/lora-aprs/LoRa_APRS_Tracker",
"timeout": 1, "timeout": 1,
"symbol": "[", "symbol": "[",
"overlay": "/" "overlay": "/"
}, },
"smart_beacon": "smart_beacon":
{ {
"active":false, "active":false,
"turn_min":25, "turn_min":25,
"slow_rate":300, "slow_rate":300,
"slow_speed":10, "slow_speed":10,
"fast_rate":60, "fast_rate":60,
@ -19,7 +19,7 @@
"min_tx_dist":100, "min_tx_dist":100,
"min_bcn":5 "min_bcn":5
}, },
"lora": "lora":
{ {
"frequency_rx":433775000, "frequency_rx":433775000,
"frequency_tx":433775000, "frequency_tx":433775000,

View file

@ -41,17 +41,17 @@ Configuration ConfigurationManagement::readConfiguration()
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;
if(data.containsKey("beacon") && data["beacon"].containsKey("symbol")) if(data.containsKey("beacon") && data["beacon"].containsKey("symbol"))
conf.beacon.symbol = data["beacon"]["symbol"].as<String>(); conf.beacon.symbol = data["beacon"]["symbol"].as<String>();
if(data.containsKey("beacon") && data["beacon"].containsKey("overlay")) if(data.containsKey("beacon") && data["beacon"].containsKey("overlay"))
conf.beacon.overlay = data["beacon"]["overlay"].as<String>() ; conf.beacon.overlay = data["beacon"]["overlay"].as<String>() ;
conf.smart_beacon.active = data["smart_beacon"]["active"] | false; conf.smart_beacon.active = data["smart_beacon"]["active"] | false;
conf.smart_beacon.turn_min = data["smart_beacon"]["turn_min"] | 25; conf.smart_beacon.turn_min = data["smart_beacon"]["turn_min"] | 25;
conf.smart_beacon.slow_rate = data["smart_beacon"]["slow_rate"] | 300; conf.smart_beacon.slow_rate = data["smart_beacon"]["slow_rate"] | 300;
conf.smart_beacon.slow_speed = data["smart_beacon"]["slow_speed"] | 10; conf.smart_beacon.slow_speed = data["smart_beacon"]["slow_speed"] | 10;
conf.smart_beacon.fast_rate = data["smart_beacon"]["fast_rate"] | 60; conf.smart_beacon.fast_rate = data["smart_beacon"]["fast_rate"] | 60;
conf.smart_beacon.fast_speed = data["smart_beacon"]["fast_speed"] | 100; conf.smart_beacon.fast_speed = data["smart_beacon"]["fast_speed"] | 100;
conf.smart_beacon.min_tx_dist = data["smart_beacon"]["min_tx_dist"] | 100; conf.smart_beacon.min_tx_dist = data["smart_beacon"]["min_tx_dist"] | 100;
conf.smart_beacon.min_bcn = data["smart_beacon"]["min_bcn"] | 5; conf.smart_beacon.min_bcn = data["smart_beacon"]["min_bcn"] | 5;