@@ -1229,46 +1229,46 @@ class Temperature {
1229
1229
MeasurementState measure_heatup ();
1230
1230
MeasurementState measure_transfer ();
1231
1231
1232
- celsius_float_t get_ambient_temp () { return ambient_temp; }
1233
- celsius_float_t get_last_measured_temp () { return current_temp; }
1232
+ static celsius_float_t get_ambient_temp () { return ambient_temp; }
1233
+ static celsius_float_t get_last_measured_temp () { return current_temp; }
1234
1234
1235
- float get_elapsed_heating_time () { return elapsed_heating_time; }
1236
- float get_sample_1_time () { return t1_time; }
1237
- float get_sample_1_temp () { return temp_samples[0 ]; }
1238
- float get_sample_2_temp () { return temp_samples[(sample_count - 1 ) >> 1 ]; }
1239
- float get_sample_3_temp () { return temp_samples[sample_count - 1 ]; }
1240
- float get_sample_interval () { return sample_distance * (sample_count >> 1 ); }
1235
+ static float get_elapsed_heating_time () { return elapsed_heating_time; }
1236
+ static float get_sample_1_time () { return t1_time; }
1237
+ static float get_sample_1_temp () { return temp_samples[0 ]; }
1238
+ static float get_sample_2_temp () { return temp_samples[(sample_count - 1 ) >> 1 ]; }
1239
+ static float get_sample_3_temp () { return temp_samples[sample_count - 1 ]; }
1240
+ static float get_sample_interval () { return sample_distance * (sample_count >> 1 ); }
1241
1241
1242
- celsius_float_t get_temp_fastest () { return temp_fastest; }
1243
- float get_time_fastest () { return time_fastest; }
1244
- float get_rate_fastest () { return rate_fastest; }
1242
+ static celsius_float_t get_temp_fastest () { return temp_fastest; }
1243
+ static float get_time_fastest () { return time_fastest; }
1244
+ static float get_rate_fastest () { return rate_fastest; }
1245
1245
1246
- float get_power_fan0 () { return power_fan0; }
1246
+ static float get_power_fan0 () { return power_fan0; }
1247
1247
#if HAS_FAN
1248
- float get_power_fan255 () { return power_fan255; }
1248
+ static float get_power_fan255 () { return power_fan255; }
1249
1249
#endif
1250
1250
1251
1251
protected:
1252
- void init_timers () { curr_time_ms = next_report_ms = millis (); }
1252
+ static void init_timers () { curr_time_ms = next_report_ms = millis (); }
1253
1253
MeasurementState housekeeping ();
1254
1254
1255
- millis_t curr_time_ms, next_report_ms;
1255
+ static millis_t curr_time_ms, next_report_ms;
1256
1256
uint8_t e;
1257
1257
1258
- float elapsed_heating_time;
1259
- celsius_float_t ambient_temp, current_temp;
1260
- celsius_float_t temp_samples[16 ];
1261
- uint8_t sample_count;
1262
- uint16_t sample_distance;
1263
- float t1_time;
1258
+ static float elapsed_heating_time;
1259
+ static celsius_float_t ambient_temp, current_temp;
1260
+ static celsius_float_t temp_samples[16 ];
1261
+ static uint8_t sample_count;
1262
+ static uint16_t sample_distance;
1263
+ static float t1_time;
1264
1264
1265
1265
// Parameters from differential analysis
1266
- celsius_float_t temp_fastest;
1267
- float time_fastest, rate_fastest;
1266
+ static celsius_float_t temp_fastest;
1267
+ static float time_fastest, rate_fastest;
1268
1268
1269
- float power_fan0;
1269
+ static float power_fan0;
1270
1270
#if HAS_FAN
1271
- float power_fan255;
1271
+ static float power_fan255;
1272
1272
#endif
1273
1273
};
1274
1274
0 commit comments