Browse Source

Access hotend/bed temperatures as float

Scott Lahteine 7 years ago
parent
commit
ebcd1aaf88
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/temperature.h

+ 2
- 2
Marlin/temperature.h View File

@@ -327,13 +327,13 @@ class Temperature {
327 327
     //inline so that there is no performance decrease.
328 328
     //deg=degreeCelsius
329 329
 
330
-    static int16_t degHotend(uint8_t e) {
330
+    static float degHotend(uint8_t e) {
331 331
       #if HOTENDS == 1
332 332
         UNUSED(e);
333 333
       #endif
334 334
       return current_temperature[HOTEND_INDEX];
335 335
     }
336
-    static int16_t degBed() { return current_temperature_bed; }
336
+    static float degBed() { return current_temperature_bed; }
337 337
 
338 338
     #if ENABLED(SHOW_TEMP_ADC_VALUES)
339 339
       static int16_t rawHotendTemp(uint8_t e) {

Loading…
Cancel
Save