Merge pull request #3956 from wavexx/tm_cal_check_312

TM: Check for PC parameters more carefully (3.12)
This commit is contained in:
3d-gussner 2023-01-27 14:57:41 +01:00 committed by GitHub
commit c9722c2b63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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