Browse Source

enable usb debug only with release builds

Thomas Buck 5 months ago
parent
commit
d651b054b1
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      include/config.h

+ 4
- 2
include/config.h View File

@@ -22,8 +22,12 @@
22 22
 #define MENU_PREFER_VOLCANO
23 23
 //#define MENU_PREFER_CRAFTY
24 24
 
25
+#ifdef NDEBUG
26
+// Release build
25 27
 #define AUTO_MOUNT_MASS_STORAGE
26 28
 #define AUTO_LOG_ON_MASS_STORAGE
29
+#define DEBUG_DISK_WRITE_SOURCES
30
+#endif
27 31
 
28 32
 #define WATCHDOG_PERIOD_MS 1000
29 33
 
@@ -35,8 +39,6 @@
35 39
 
36 40
 #define SERIAL_WRITES_BLOCK_WHEN_BUFFER_FULL
37 41
 
38
-#define DEBUG_DISK_WRITE_SOURCES
39
-
40 42
 #define DISK_BLOCK_SIZE 512
41 43
 
42 44
 #ifdef DEBUG_DISK_WRITE_SOURCES

Loading…
Cancel
Save