system/send: use busId if SRC is null

This commit is contained in:
MichaelDvP
2024-07-16 13:57:03 +02:00
parent 4755e685f4
commit 58aacc189f

View File

@@ -475,7 +475,7 @@ void TxService::add(uint8_t operation, const uint8_t * data, const uint8_t lengt
}
// build header. src, dest and offset have fixed positions
uint8_t src = operation == Telegram::Operation::TX_RAW ? data[0] : ems_bus_id();
uint8_t src = operation == Telegram::Operation::TX_RAW && data[0] ? data[0] : ems_bus_id();
uint8_t dest = data[1];
uint8_t offset = data[3];