cmdmon: allow unhandled commands
Replace the assert() with a debug message to not crash if someone forgets to implement a newly defined command.
This commit is contained in:
parent
ea002130d7
commit
6e4dd9302d
1 changed files with 2 additions and 1 deletions
3
cmdmon.c
3
cmdmon.c
|
@ -1565,7 +1565,8 @@ read_from_cmd_socket(void *anything)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(0);
|
DEBUG_LOG(LOGF_CmdMon, "Unhandled command %d", rx_command);
|
||||||
|
tx_message.status = htons(STT_FAILED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue