change GPS data default off to on

This commit is contained in:
Verkehrsrot 2019-11-27 22:13:18 +01:00
parent d5e9e78de5
commit a7497624b7
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

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