From 1a88e339bfefefbad6fc9321177c15b2a63cd41f Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 8 Jun 2021 17:17:18 +0200 Subject: [PATCH] xfdump: fix build with XFLASH_DUMP disabled --- Firmware/xflash_dump.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/xflash_dump.cpp b/Firmware/xflash_dump.cpp index 519ecf1bd..f1ff9dede 100644 --- a/Firmware/xflash_dump.cpp +++ b/Firmware/xflash_dump.cpp @@ -4,6 +4,7 @@ #include #include "xflash_dump.h" +#ifdef XFLASH_DUMP #include "xflash.h" @@ -104,3 +105,4 @@ void xfdump_full_dump_and_reset(bool crash) wdt_enable(0); while(true); } +#endif