TM: Check for PC parameters more carefully

This commit is contained in:
Yuri D'Elia 2023-01-26 23:37:49 +01:00
parent 87118c1042
commit 36c3814dc2

View File

@ -2387,8 +2387,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))