Open wshelley opened 2 years ago
This would probably fix it:
if (heaterstatenum >= 0 && heaterstatenum <= 8)
{
Serial.println(heaterstate[heaterstatenum]);
}
I've created my own fork of the original @Jess-- project and fixed the issue: https://github.com/wshelley/Chinese-Diesel-Heater-Advanaced-Temperature-Controller
Thank you ! I didnt have much help besides the original code and it kept shutting my particular heater down.. Im going to try and run your updated coding and see what happens.. its startin to get cold at home base. time to hunker down for the long cold..
Thanks for publishing this code, and to the previous authors. Not sure if this is related to the issue that you had but I had some major stability issues with the following line:
The heater was reporting a state of 96 for a brief period, which caused an issue with the array.
As its really just extra debug information, I've commented this out in my code for stability.