mirror of
https://github.com/thelsing/knx.git
synced 2025-08-31 13:47:01 +02:00
Make sure that sent broadcast/systembroadcast frames are always marked as broadcast frames on closed media
This commit is contained in:
parent
f41d542939
commit
0206377e0a
@ -140,7 +140,12 @@ bool DataLinkLayer::sendTelegram(NPDU & npdu, AckType ack, uint16_t destinationA
|
|||||||
frame.addressType(addrType);
|
frame.addressType(addrType);
|
||||||
frame.priority(priority);
|
frame.priority(priority);
|
||||||
frame.repetition(RepititionAllowed);
|
frame.repetition(RepititionAllowed);
|
||||||
|
#if (MEDIUM_TYPE == 5)||(MEDIUM_TYPE == 0)
|
||||||
|
// Make sure to always send as normal Broadcast on closed media (TP and IP)
|
||||||
|
frame.systemBroadcast(Broadcast);
|
||||||
|
#else
|
||||||
frame.systemBroadcast(systemBroadcast);
|
frame.systemBroadcast(systemBroadcast);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (npdu.octetCount() <= 15)
|
if (npdu.octetCount() <= 15)
|
||||||
frame.frameType(StandardFrame);
|
frame.frameType(StandardFrame);
|
||||||
|
Loading…
Reference in New Issue
Block a user