new uartmode 5 to test

This commit is contained in:
MichaelDvP
2020-06-19 08:36:29 +02:00
parent fdd1c117d6
commit 5a189813ee
6 changed files with 78 additions and 16 deletions

View File

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