Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#3956 from wavexx/tm_cal_check_312
Browse files Browse the repository at this point in the history
TM: Check for PC parameters more carefully (3.12)
  • Loading branch information
3d-gussner authored Jan 27, 2023
2 parents 8ee0849 + 36c3814 commit c9722c2
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 @@ -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))
Expand Down

0 comments on commit c9722c2

Please sign in to comment.