瀏覽代碼

xfdump: fix build with XFLASH_DUMP disabled

Yuri D'Elia 2 年之前
父節點
當前提交
1a88e339bf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Firmware/xflash_dump.cpp

+ 2 - 0
Firmware/xflash_dump.cpp

@@ -4,6 +4,7 @@
 #include <avr/interrupt.h>
 #include <avr/interrupt.h>
 
 
 #include "xflash_dump.h"
 #include "xflash_dump.h"
+#ifdef XFLASH_DUMP
 #include "xflash.h"
 #include "xflash.h"
 
 
 
 
@@ -104,3 +105,4 @@ void xfdump_full_dump_and_reset(bool crash)
     wdt_enable(0);
     wdt_enable(0);
     while(true);
     while(true);
 }
 }
+#endif