Преглед изворни кода

Probe singleton patch

Followup to #16751
Scott Lahteine пре 4 година
родитељ
комит
995a9238b3
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2
    2
      Marlin/src/module/probe.cpp
  2. 1
    1
      Marlin/src/module/probe.h

+ 2
- 2
Marlin/src/module/probe.cpp Прегледај датотеку

@@ -455,8 +455,8 @@ bool Probe::set_deployed(const bool deploy) {
455 455
  * @return true to indicate an error
456 456
  */
457 457
 
458
-#if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER)
459
-  PGM_P Probe::msg_wait_for_bed_heating[25] PROGMEM = "Wait for bed heating...\n";
458
+#if HAS_BED_PROBE && HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER)
459
+  const char Probe::msg_wait_for_bed_heating[25] PROGMEM = "Wait for bed heating...\n";
460 460
 #endif
461 461
 
462 462
 bool Probe::move_to_z(const float z, const feedRate_t fr_mm_s) {

+ 1
- 1
Marlin/src/module/probe.h Прегледај датотеку

@@ -61,7 +61,7 @@ public:
61 61
       return probe_at_point(pos.x, pos.y, raise_after, verbose_level, probe_relative);
62 62
     }
63 63
     #if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER)
64
-      static PGM_P msg_wait_for_bed_heating[25];
64
+      static const char msg_wait_for_bed_heating[25];
65 65
     #endif
66 66
 
67 67
   #else

Loading…
Откажи
Сачувај