Send 'ACK' response for admin message

This commit is contained in:
GUVWAF 2022-11-25 20:33:12 +01:00
parent 8815746006
commit c45a85547e

View File

@ -176,6 +176,12 @@ bool AdminModule::handleReceivedProtobuf(const MeshPacket &mp, AdminMessage *r)
}
break;
}
// If asked for a response and it is not yet set, generate an 'ACK' response
if (mp.decoded.want_response && !myReply) {
myReply = allocErrorResponse(Routing_Error_NONE, &mp);
}
return handled;
}