From cc2cfd3c134e92e637245ed717f1ee859de67b66 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 1 Sep 2019 00:56:42 +0200 Subject: [PATCH] configmanager payloadmask default fixed --- src/configmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 73e52f9d..496bcacb 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -9,8 +9,8 @@ nvs_handle my_handle; esp_err_t err; #define PAYLOADMASK \ - (GPS_DATA | ALARM_DATA | MEMS_DATA | COUNT_DATA | SENSOR1_DATA | \ - SENSOR2_DATA | SENSOR3_DATA & ~BATT_DATA) + ((GPS_DATA | ALARM_DATA | MEMS_DATA | COUNT_DATA | SENSOR1_DATA | \ + SENSOR2_DATA | SENSOR3_DATA) & ~BATT_DATA) // populate cfg vars with factory settings void defaultConfig() {