Limit i_set within range of MAX1968 chip #102
Loading…
Reference in New Issue
No description provided.
Delete Branch "atse/thermostat:limit-i_set"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #99, where i_set was allowed to be set with no constraints. The limit of ±3A is from the MAX1968 TEC chip's capabilities.
509b53d67d
tocb4d5b737e
@ -133,0 +136,4 @@
if i_set < min {
i_set = min;
}
if i_set > max {
else if
would be slightly better, though I would prefer min(max(value, LOWER_LIMIT), UPPER_LIMIT)cb4d5b737e
toe1e5a8a71c