small changes

This commit is contained in:
Stefan Ostermann 2021-05-02 15:04:45 +02:00
parent 2e72d8dc42
commit 8bc1861024
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ lib_deps =
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^6.17.3
build_flags = -D USE_ESPRESSIF
upload_port = /dev/ttyUSB0
;upload_port = /dev/ttyUSB0

View File

@ -145,7 +145,7 @@ void loop()
uint8_t device_id = rh_buf[0] &0x0f;
Serial.print("Device ID: ");
Serial.println(device_id);
switch (rh_buf[0] & 0xf0)
switch (header)
{
case MSG_START:
// start message