Add filament sensor status reporting from printer into MMU
parent
e59e7e3884
commit
dc3f5764a6
|
|
@ -313,9 +313,10 @@ void ProcessRequestMsg(const mp::RequestMsg &rq) {
|
||||||
case mp::RequestMsgCodes::Unload:
|
case mp::RequestMsgCodes::Unload:
|
||||||
PlanCommand(rq);
|
PlanCommand(rq);
|
||||||
break;
|
break;
|
||||||
// case mp::RequestMsgCodes::SetVar: //@@TODO - this is where e.g. printer's fsensor gets updated
|
case mp::RequestMsgCodes::FilamentSensor: // set filament sensor state in the printer
|
||||||
// SetVar(rq);
|
mfs::fsensor.ProcessMessage(rq.value != 0);
|
||||||
// break;
|
ReportCommandAccepted(rq, mp::ResponseMsgParamCodes::Accepted);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// respond with an error message
|
// respond with an error message
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ enum class RequestMsgCodes : uint8_t {
|
||||||
Button = 'B',
|
Button = 'B',
|
||||||
Eject = 'E',
|
Eject = 'E',
|
||||||
Wait = 'W',
|
Wait = 'W',
|
||||||
Cut = 'K'
|
Cut = 'K',
|
||||||
|
FilamentSensor = 'F'
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Definition of response message parameter codes
|
/// Definition of response message parameter codes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue