Add handling of the X0 message (restart the MMU) via Watchdog

pull/67/head
D.R.racer 2021-07-20 07:28:43 +02:00
parent a23ed5e1bf
commit 4ba6c6e679
1 changed files with 5 additions and 2 deletions

View File

@ -293,12 +293,15 @@ void ProcessRequestMsg(const mp::RequestMsg &rq) {
break;
case mp::RequestMsgCodes::Reset:
// immediately reset the board - there is no response in this case
break; // @@TODO
hal::watchdog::ConfigureWatchDog(1); // set the watchdog to the lowest possible timeout
for (;;)
; // cycle indefinitely (i.e. let the watchdog reset the CPU)
break;
case mp::RequestMsgCodes::Version:
ReportVersion(rq);
break;
case mp::RequestMsgCodes::Wait:
break; // @@TODO
break; // @@TODO - not used anywhere yet
case mp::RequestMsgCodes::Cut:
case mp::RequestMsgCodes::Eject:
case mp::RequestMsgCodes::Load: