Skip to content

Commit 2a04dd8

Browse files
committed
send nack on receive if no protocol active.
1 parent dbc37bd commit 2a04dd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/device/adamnet/network.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,11 @@ void adamNetwork::adamnet_control_receive()
722722
adamnet_response_ack();
723723
return;
724724
}
725+
else if (protocol == nullptr)
726+
{
727+
adamnet_response_nack();
728+
return;
729+
}
725730

726731
switch (receiveMode)
727732
{

0 commit comments

Comments
 (0)