Browse Source

Move has_temperature_compensation() into temperature.cpp.

No change in FLASH usage.
Marek Bel 3 years ago
parent
commit
23cc22bc22
3 changed files with 12 additions and 9 deletions
  1. 11 0
      Firmware/temperature.cpp
  2. 1 0
      Firmware/temperature.h
  3. 0 9
      Firmware/ultralcd.cpp

+ 11 - 0
Firmware/temperature.cpp

@@ -2196,4 +2196,15 @@ float unscalePID_d(float d)
 
 #endif //PIDTEMP
 
+#ifdef PINDA_THERMISTOR
+bool has_temperature_compensation()
+{
+#ifdef DETECT_SUPERPINDA
+    return (current_temperature_pinda >= PINDA_MINTEMP) ? true : false;
+#else
+    return true;
+#endif
+}
+#endif //PINDA_THERMISTOR
+
 

+ 1 - 0
Firmware/temperature.h

@@ -63,6 +63,7 @@ extern float current_temperature_bed;
 #ifdef PINDA_THERMISTOR
 extern uint16_t current_temperature_raw_pinda;
 extern float current_temperature_pinda;
+bool has_temperature_compensation();
 #endif
 
 #ifdef AMBIENT_THERMISTOR

+ 0 - 9
Firmware/ultralcd.cpp

@@ -334,15 +334,6 @@ bool bSettings;                                   // flag (i.e. 'fake parameter'
 
 const char STR_SEPARATOR[] PROGMEM = "------------";
 
-static bool has_temperature_compensation()
-{
-#ifdef DETECT_SUPERPINDA
-    return (current_temperature_pinda >= PINDA_MINTEMP) ? true : false;
-#else
-    return true;
-#endif
-}
-
 
 static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* filename, char* longFilename)
 {