mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Tip short detection at boot
If tip is shorted at boot, prevent the FW from running, with the intent to prevent the MOSFET from being damaged
This commit is contained in:
@@ -206,6 +206,11 @@ void FinishMeasureTipResistance() {
|
|||||||
uint8_t newRes = 0;
|
uint8_t newRes = 0;
|
||||||
if (reading > 8000) {
|
if (reading > 8000) {
|
||||||
// return; // Change nothing as probably disconnected tip
|
// return; // Change nothing as probably disconnected tip
|
||||||
|
} else if (reading < 500) {
|
||||||
|
for (;;) /* Tip shorted, wait until reset */
|
||||||
|
{
|
||||||
|
__NOP();
|
||||||
|
}
|
||||||
} else if (reading < 4000) {
|
} else if (reading < 4000) {
|
||||||
newRes = 62;
|
newRes = 62;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user