application: limit lid power to 50%
This commit is contained in:
parent
6d93633587
commit
517f58d463
|
@ -260,8 +260,8 @@ static void lid_pid(void)
|
|||
// enforce limits
|
||||
if (power < 0.0) {
|
||||
power = 0.0;
|
||||
} else if (power > 100.0) {
|
||||
power = 100.0;
|
||||
} else if (power > 50.0) { // limit power to 50%, else it gets too warm too quick and could damage the hardware
|
||||
power = 50.0;
|
||||
}
|
||||
lid_power((uint8_t)power); // set power
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue