Browse Source

Probe singleton patch

Followup to #16751
Scott Lahteine 4 years ago
parent
commit
995a9238b3
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      Marlin/src/module/probe.cpp
  2. 1
    1
      Marlin/src/module/probe.h

+ 2
- 2
Marlin/src/module/probe.cpp View File

455
  * @return true to indicate an error
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
 #endif
460
 #endif
461
 
461
 
462
 bool Probe::move_to_z(const float z, const feedRate_t fr_mm_s) {
462
 bool Probe::move_to_z(const float z, const feedRate_t fr_mm_s) {

+ 1
- 1
Marlin/src/module/probe.h View File

61
       return probe_at_point(pos.x, pos.y, raise_after, verbose_level, probe_relative);
61
       return probe_at_point(pos.x, pos.y, raise_after, verbose_level, probe_relative);
62
     }
62
     }
63
     #if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER)
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
     #endif
65
     #endif
66
 
66
 
67
   #else
67
   #else

Loading…
Cancel
Save