TM: Check for PC parameters more carefully

This commit is contained in:
Yuri D'Elia 2023-01-26 23:37:49 +01:00 committed by DRracer
parent 216b935488
commit e39f2d132e
1 changed files with 2 additions and 2 deletions

View File

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