cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.69k stars 397 forks source link

HAS_SENSORS can not known in payload.cpp #775

Closed hansju-11 closed 3 years ago

hansju-11 commented 3 years ago

if (HAS_SENSORS)

uint8_t length = buf[0]; memcpy(buffer, buf + 1, length); cursor += length; // length of buffer

endif

is never be reached.

to solve this

include "sensor.h"

after this HAS_SENSORS is resolved to (HAS_SENSOR_1 || HAS_SENSOR_2 || HAS_SENSOR_3)

cyberman54 commented 3 years ago

fixed.