small changes
This commit is contained in:
parent
2e72d8dc42
commit
8bc1861024
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue