Removed magic numbers in `load.c` for the defines in header.
This commit is contained in:
parent
dbdba2ff9e
commit
cbede38910
|
@ -32,7 +32,7 @@ static bool portb_disabled[8] = {0};
|
|||
|
||||
static bool valid_load(uint16_t val)
|
||||
{
|
||||
if(val > 527 && val < 1000) {
|
||||
if(val > LOWTHRESH && val < HIGHTHRESH) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue