Possible error in GCode documentation (M140)
-
The documentation for GCode M140 states that the bed heater can be switched off by passing an S-value of "-273 or lower", and even gives an example "M140 S-273". However, this does not work. The source code (src/GCodes/GCodes2.cpp:1731) actually checks if the S-value given is strictly less than -273.0. Therefore, "M140 S-273" will not switch off the bed heater, but e.g. "M140 S-274" will.
In addition, the term "the absolute negative temperature" used in the documentation of M140 is strange. I guess it refers to the absolute zero temperature.
Cheers,
Örjan -
I just realized that the GCode-documentation is a Wiki, so I took the liberty of updating the M140-documentation myself.
/Ö -
@örjane thanks for pointing this out. I have corrected the source code so that -273.0 will work to turn off heaters in RRF 3.4.0 and later.