Przeglądaj źródła

🎨 Clean up warnings / extra check (#24163)

Keith Bennett 2 lat temu
rodzic
commit
8ccc601218
No account linked to committer's email address

+ 5
- 5
Marlin/src/gcode/calibrate/G76_M871.cpp Wyświetl plik

@@ -82,13 +82,13 @@
82 82
  *  - `P` - Run probe temperature calibration.
83 83
  */
84 84
 
85
-static void say_waiting_for()               { SERIAL_ECHOPGM("Waiting for "); }
86
-static void say_waiting_for_probe_heating() { say_waiting_for(); SERIAL_ECHOLNPGM("probe heating."); }
87
-static void say_successfully_calibrated()   { SERIAL_ECHOPGM("Successfully calibrated"); }
88
-static void say_failed_to_calibrate()       { SERIAL_ECHOPGM("!Failed to calibrate"); }
89
-
90 85
 #if BOTH(PTC_PROBE, PTC_BED)
91 86
 
87
+  static void say_waiting_for()               { SERIAL_ECHOPGM("Waiting for "); }
88
+  static void say_waiting_for_probe_heating() { say_waiting_for(); SERIAL_ECHOLNPGM("probe heating."); }
89
+  static void say_successfully_calibrated()   { SERIAL_ECHOPGM("Successfully calibrated"); }
90
+  static void say_failed_to_calibrate()       { SERIAL_ECHOPGM("!Failed to calibrate"); }
91
+
92 92
   void GcodeSuite::G76() {
93 93
     auto report_temps = [](millis_t &ntr, millis_t timeout=0) {
94 94
       idle_no_sleep();

+ 0
- 10
Marlin/src/inc/SanityCheck.h Wyświetl plik

@@ -2381,16 +2381,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
2381 2381
   #endif
2382 2382
 #endif
2383 2383
 
2384
-#if TEMP_SENSOR_PROBE
2385
-  #if !PIN_EXISTS(TEMP_PROBE)
2386
-    #error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN."
2387
-  #elif !HAS_TEMP_ADC_PROBE
2388
-    #error "TEMP_PROBE_PIN must be an ADC pin."
2389
-  #elif DISABLED(FIX_MOUNTED_PROBE)
2390
-    #error "TEMP_SENSOR_PROBE shouldn't be set without FIX_MOUNTED_PROBE."
2391
-  #endif
2392
-#endif
2393
-
2394 2384
 #if TEMP_SENSOR_BOARD
2395 2385
   #if !PIN_EXISTS(TEMP_BOARD)
2396 2386
     #error "TEMP_SENSOR_BOARD requires TEMP_BOARD_PIN."

Ładowanie…
Anuluj
Zapisz