Add filament sensor status reporting from printer into MMU

pull/122/head
D.R.racer 2021-09-16 10:36:50 +02:00 committed by DRracer
parent e59e7e3884
commit dc3f5764a6
2 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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