mirror of
https://github.com/thelsing/knx.git
synced 2025-10-12 11:15:54 +02:00
Send M_Reset_ind so that ETS does not run into timeout every time
This commit is contained in:
parent
322c3bbff8
commit
234396855b
@ -315,11 +315,16 @@ void CemiServer::frameReceived(CemiFrame& frame)
|
|||||||
|
|
||||||
case M_Reset_req:
|
case M_Reset_req:
|
||||||
{
|
{
|
||||||
println("M_Reset_req");
|
println("M_Reset_req: sending M_Reset_ind");
|
||||||
// A real device reset does not work for USB or KNXNET/IP.
|
// A real device reset does not work for USB or KNXNET/IP.
|
||||||
// Thus, M_Reset_ind is NOT mandatory for USB and KNXNET/IP.
|
// Thus, M_Reset_ind is NOT mandatory for USB and KNXNET/IP.
|
||||||
// We just save all data to the EEPROM
|
// We just save all data to the EEPROM
|
||||||
_bau.writeMemory();
|
_bau.writeMemory();
|
||||||
|
// Prepare response
|
||||||
|
uint8_t responseData[1];
|
||||||
|
CemiFrame responseFrame(responseData, sizeof(responseData));
|
||||||
|
responseFrame.messageCode(M_Reset_ind);
|
||||||
|
_usbTunnelInterface.sendCemiFrame(responseFrame);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user