Skip to content

Commit

Permalink
TM: Check for PC parameters more carefully
Browse files Browse the repository at this point in the history
  • Loading branch information
wavexx authored and DRracer committed Jan 27, 2023
1 parent 216b935 commit e39f2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2381,8 +2381,8 @@ static void setup()

static bool calibrated()
{
if(!(data.P >= 0)) return false;
if(!(data.C >= 0)) return false;
if(!(data.P > 0)) return false;
if(!(data.C > 0)) return false;
if(!(data.Ta_corr != NAN)) return false;
for(uint8_t i = 0; i != TEMP_MODEL_R_SIZE; ++i) {
if(!(temp_model::data.R[i] >= 0))
Expand Down

0 comments on commit e39f2d1

Please sign in to comment.