mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
new uartmode 5 to test
This commit is contained in:
@@ -270,7 +270,9 @@ void RxService::add(uint8_t * data, uint8_t length) {
|
||||
uint8_t message_length; // length of the message block, excluding CRC
|
||||
|
||||
// work out depending on the type, where the data message block starts and the message length
|
||||
if (data[2] < 0xF0) {
|
||||
// EMS 1 has type_id always in data[2], if it gets a ems+ inquiery it will reply with FF but short length
|
||||
// i.e. sending 0b A1 FF 00 01 D8 20 to a MM10 Mixer (ems1.0) he replys with 21 0B FF 00
|
||||
if (data[2] < 0xF0 || length < 6) {
|
||||
// EMS 1.0
|
||||
type_id = data[2];
|
||||
message_data = data + 4;
|
||||
|
||||
Reference in New Issue
Block a user