Welcome! Log In Create A New Profile

Advanced

M190 wait for cool bed

Posted by tonyallen28 
M190 wait for cool bed
January 01, 2016 11:35PM
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.

Edited 1 time(s). Last edit at 01/01/2016 11:40PM by tonyallen28.
Sorry, only registered users may post in this forum.

Click here to login