From d9f671ed1888505fc8e7f76104737c45f649cea9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 29 Aug 2021 18:53:12 -0500 Subject: [PATCH] Warning similar to Longer LK --- .../share/PlatformIO/variants/MARLIN_F103Zx/PinNamesVar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildroot/share/PlatformIO/variants/MARLIN_F103Zx/PinNamesVar.h b/buildroot/share/PlatformIO/variants/MARLIN_F103Zx/PinNamesVar.h index d9076b4dfb59c..e2e7040857888 100644 --- a/buildroot/share/PlatformIO/variants/MARLIN_F103Zx/PinNamesVar.h +++ b/buildroot/share/PlatformIO/variants/MARLIN_F103Zx/PinNamesVar.h @@ -1,5 +1,6 @@ /* SYS_WKUP */ -#ifdef PWR_WAKEUP_PIN1 +#if defined(PWR_WAKEUP_PIN1) && defined(HAL_PWR_MODULE_ENABLED) && !defined(HAL_PWR_MODULE_ONLY) + #error "PA0 is used by thermal sensor, disable low power wake with -DHAL_PWR_MODULE_ONLY" SYS_WKUP1 = PA_0, #endif #ifdef PWR_WAKEUP_PIN2