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() {