@@ -1234,41 +1234,42 @@ class Temperature {
1234
1234
1235
1235
float get_elapsed_heating_time () { return elapsed_heating_time; }
1236
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 ); }
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; }
1242
+ static celsius_float_t get_temp_fastest () { return temp_fastest; }
1243
1243
float get_time_fastest () { return time_fastest; }
1244
1244
float get_rate_fastest () { return rate_fastest; }
1245
1245
1246
1246
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;
1256
1255
uint8_t e;
1257
1256
1258
1257
float elapsed_heating_time;
1259
1258
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
1259
float t1_time;
1264
1260
1261
+ static millis_t curr_time_ms, next_report_ms;
1262
+ static celsius_float_t temp_samples[16 ];
1263
+ static uint8_t sample_count;
1264
+ static uint16_t sample_distance;
1265
+
1265
1266
// Parameters from differential analysis
1266
- celsius_float_t temp_fastest;
1267
+ static celsius_float_t temp_fastest;
1267
1268
float time_fastest, rate_fastest;
1268
1269
1269
1270
float power_fan0;
1270
1271
#if HAS_FAN
1271
- float power_fan255;
1272
+ static float power_fan255;
1272
1273
#endif
1273
1274
};
1274
1275
0 commit comments