Trying to use some servos and gcodes to auto eject my prints after they're done printing. I've read alot of posts about M190 waiting for bed temp whether the desired temp needs heating or cooling however it doesnt seem to wait for cooling. Going through Commands.cpp I was able to change this line
while(heatedBedController.currentTemperatureC + 0.5 < heatedBedController.targetTemperatureC && heatedBedController.targetTemperatureC > 25.0)
to this
while((heatedBedController.currentTemperatureC + 0.5 < heatedBedController.targetTemperatureC || heatedBedController.currentTemperatureC - 0.5 > heatedBedController.targetTemperatureC) && heatedBedController.targetTemperatureC > 25.0)
now it waits for the bed to cool also. Not sure if this will have undesired consequences though. Will update if I run into problems.
The LCD will read Heating Bed while its waiting to cool. But I can live with that instead of messing with the UI code.
while(heatedBedController.currentTemperatureC + 0.5 < heatedBedController.targetTemperatureC && heatedBedController.targetTemperatureC > 25.0)
to this
while((heatedBedController.currentTemperatureC + 0.5 < heatedBedController.targetTemperatureC || heatedBedController.currentTemperatureC - 0.5 > heatedBedController.targetTemperatureC) && heatedBedController.targetTemperatureC > 25.0)
now it waits for the bed to cool also. Not sure if this will have undesired consequences though. Will update if I run into problems.
The LCD will read Heating Bed while its waiting to cool. But I can live with that instead of messing with the UI code.