Browse Source

enable usb debug only with release builds

Thomas Buck 11 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
 #define MENU_PREFER_VOLCANO
22
 #define MENU_PREFER_VOLCANO
23
 //#define MENU_PREFER_CRAFTY
23
 //#define MENU_PREFER_CRAFTY
24
 
24
 
25
+#ifdef NDEBUG
26
+// Release build
25
 #define AUTO_MOUNT_MASS_STORAGE
27
 #define AUTO_MOUNT_MASS_STORAGE
26
 #define AUTO_LOG_ON_MASS_STORAGE
28
 #define AUTO_LOG_ON_MASS_STORAGE
29
+#define DEBUG_DISK_WRITE_SOURCES
30
+#endif
27
 
31
 
28
 #define WATCHDOG_PERIOD_MS 1000
32
 #define WATCHDOG_PERIOD_MS 1000
29
 
33
 
35
 
39
 
36
 #define SERIAL_WRITES_BLOCK_WHEN_BUFFER_FULL
40
 #define SERIAL_WRITES_BLOCK_WHEN_BUFFER_FULL
37
 
41
 
38
-#define DEBUG_DISK_WRITE_SOURCES
39
-
40
 #define DISK_BLOCK_SIZE 512
42
 #define DISK_BLOCK_SIZE 512
41
 
43
 
42
 #ifdef DEBUG_DISK_WRITE_SOURCES
44
 #ifdef DEBUG_DISK_WRITE_SOURCES

Loading…
Cancel
Save