Explorar el Código

Access hotend/bed temperatures as float

Scott Lahteine hace 8 años
padre
commit
ebcd1aaf88
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Marlin/temperature.h

+ 2
- 2
Marlin/temperature.h Ver fichero

327
     //inline so that there is no performance decrease.
327
     //inline so that there is no performance decrease.
328
     //deg=degreeCelsius
328
     //deg=degreeCelsius
329
 
329
 
330
-    static int16_t degHotend(uint8_t e) {
330
+    static float degHotend(uint8_t e) {
331
       #if HOTENDS == 1
331
       #if HOTENDS == 1
332
         UNUSED(e);
332
         UNUSED(e);
333
       #endif
333
       #endif
334
       return current_temperature[HOTEND_INDEX];
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
     #if ENABLED(SHOW_TEMP_ADC_VALUES)
338
     #if ENABLED(SHOW_TEMP_ADC_VALUES)
339
       static int16_t rawHotendTemp(uint8_t e) {
339
       static int16_t rawHotendTemp(uint8_t e) {

Loading…
Cancelar
Guardar