Browse Source

xfdump: fix build with XFLASH_DUMP disabled

Yuri D'Elia 3 years ago
parent
commit
1a88e339bf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Firmware/xflash_dump.cpp

+ 2 - 0
Firmware/xflash_dump.cpp

@@ -4,6 +4,7 @@
 #include <avr/interrupt.h>
 
 #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