From 995a9238b37931ea41698abc90388bbb74c0ae5f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 1 Feb 2020 07:51:50 -0600 Subject: [PATCH] Probe singleton patch Followup to #16751 --- Marlin/src/module/probe.cpp | 4 ++-- Marlin/src/module/probe.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index ef11a5212..35aaf93f0 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -455,8 +455,8 @@ bool Probe::set_deployed(const bool deploy) { * @return true to indicate an error */ -#if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER) - PGM_P Probe::msg_wait_for_bed_heating[25] PROGMEM = "Wait for bed heating...\n"; +#if HAS_BED_PROBE && HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER) + const char Probe::msg_wait_for_bed_heating[25] PROGMEM = "Wait for bed heating...\n"; #endif bool Probe::move_to_z(const float z, const feedRate_t fr_mm_s) { diff --git a/Marlin/src/module/probe.h b/Marlin/src/module/probe.h index 5cf0ecc25..af01e208c 100644 --- a/Marlin/src/module/probe.h +++ b/Marlin/src/module/probe.h @@ -61,7 +61,7 @@ public: return probe_at_point(pos.x, pos.y, raise_after, verbose_level, probe_relative); } #if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER) - static PGM_P msg_wait_for_bed_heating[25]; + static const char msg_wait_for_bed_heating[25]; #endif #else