Yes, after a nice sleeping I catched it instantly.
These tiredness consequences always fascinated me, something being in your face so clearly, and you didn't see them!
*Takes a nap* It shows like a neon sign!
The problem was again, the setmode function.
I was resetting the temp reached flag every time.
As it was already at the setpoint temp, it caused an instant beep.
Yesterday I didn't got the problem because I was setting the power extremely low, to avoid overheating the tip while debugging, so it was cold all the time.
Fixed, uploading updated builds.
Edit: updated.
I also lowered the low voltage limit a bit, to 11V. So 12V can be used correctly (11.9 would trigger the error).
At 12V the mosfet became very slightly warm (with 24V it was colder) meaning it was not doing it's best, having higher switching loses. But nothing to worry about.
But below 11V, it's asking for trouble, so I won't set that parameter as an adjustable option.
Now I have to think something about calibration.
For example, only on first boot, require a manual adjustment for 250, 350, 450ºC, these values will be stored and used for the auto calibration.
To avoid ex. ADC 2500 makes 300ºC in one board but 530ºC in another.
I'd prefer to avoid that, the only way is that you guys start posting calibration values.
I need to ensure there are not a lot of difference between same boards or tips.
I'll start the new thread later. There's a lot to do.