application: limit lid power to 50%

This commit is contained in:
King Kévin 2020-12-08 23:15:21 +01:00
parent 6d93633587
commit 517f58d463
1 changed files with 2 additions and 2 deletions

View File

@ -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
}