Changed the magic numbers to using defines; also changed `LOWTHRESH` to be 900.

This commit is contained in:
jakeg00dwin 2024-09-20 18:19:48 -07:00
parent e11816bd9b
commit 53057d9ef0
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -14,7 +14,7 @@
* @brief Low Threshold
*
*/
#define LOWTHRESH 527
#define LOWTHRESH 900
/**
* @brief High Threshold