triggering works, also autotrig

This commit is contained in:
2018-02-04 22:32:22 +01:00
parent 21d9e97653
commit a4e04dc04e
3 changed files with 50 additions and 28 deletions
+5
View File
@@ -490,6 +490,11 @@ void ureg_deliver_unit_request(TF_Msg *msg)
if (pUnit->callsign == callsign && pUnit->status == E_SUCCESS) {
error_t rv = pUnit->driver->handleRequest(pUnit, msg->frame_id, command, &pp);
if (!pp.ok) {
com_respond_error(msg->frame_id, E_MALFORMED_COMMAND);
goto quit;
}
// send extra SUCCESS confirmation message.
// error is expected to have already been reported.
if (rv == E_SUCCESS) {