From a7497624b71168885c02f4b62548aee3488445e8 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Wed, 27 Nov 2019 22:13:18 +0100 Subject: [PATCH] change GPS data default off to on --- README.md | 2 +- src/configmanager.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68fe86bd..b61757b9 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ Output of sensor and peripheral data is internally switched by a bitmask registe | Bit | Sensordata | Default | --- | ------------- | ------- -| 0 | GPS | off* +| 0 | GPS | on* | 1 | Beacon alarm | on | 2 | BME280/680 | on | 3 | Paxcounter | on diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 40d4a0a8..c51e4dd7 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -9,9 +9,9 @@ nvs_handle my_handle; esp_err_t err; #define PAYLOADMASK \ - ((ALARM_DATA | MEMS_DATA | COUNT_DATA | SENSOR1_DATA | SENSOR2_DATA | \ - SENSOR3_DATA) & \ - (~BATT_DATA) & (~GPS_DATA)) + (ALARM_DATA | MEMS_DATA | COUNT_DATA | GPS_DATA | SENSOR1_DATA | \ + SENSOR2_DATA | SENSOR3_DATA) & \ + (~BATT_DATA) // populate cfg vars with factory settings void defaultConfig() {