It seems that “ADC out of range” issue comes quite frequently. I recently experienced it myself and would like to suggest 2 improvements.
Describe the issue in more details: Finding which sensor what out of range wasn’t that easy because there are multiple log files (it’s in klippy’s logs) and for me it was one line with a
temp=-34instead of something like
temp=34. We could in this case raise the exception and logs a bit more info, for example:
MCU 'mcu' shutdown: ADC out of range: "heated_bed" sensor is reporting -34°C (valid range is 0 to 90°C, target is 60°C)
- Allow some errors: I had hours prints fail because for 1sec that sensor reported a wrong temperature (and the bed sensor temperature won’t change that fast). It’d have been a lot better if it could be out of range for a short time (e.g. 10 sec) and only warn me that this sensor is likely going to fail soon.
Note: I’m using Mainsail.