Changed the magic numbers to using defines; also changed `LOWTHRESH` to be 900.
This commit is contained in:
parent
e11816bd9b
commit
53057d9ef0
|
@ -32,7 +32,7 @@ static bool portb_disabled[8] = {0};
|
||||||
|
|
||||||
static bool valid_load(uint16_t val)
|
static bool valid_load(uint16_t val)
|
||||||
{
|
{
|
||||||
if(val > 527 && val < 1000) {
|
if(val > LOWTHRESH && val < HIGHTHRESH) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* @brief Low Threshold
|
* @brief Low Threshold
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define LOWTHRESH 527
|
#define LOWTHRESH 900
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief High Threshold
|
* @brief High Threshold
|
||||||
|
|
Loading…
Reference in New Issue