diff options
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/dfu/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/dfu/src/tusb_config.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/device/dfu/src/main.c b/examples/device/dfu/src/main.c index 1621a330b..7133d1624 100644 --- a/examples/device/dfu/src/main.c +++ b/examples/device/dfu/src/main.c @@ -148,7 +148,7 @@ uint32_t tud_dfu_get_timeout_cb(uint8_t alt, uint8_t state) void tud_dfu_download_cb(uint8_t alt, uint16_t wBlockNum, uint8_t const* data, uint16_t length) { (void) data; - printf("\r\nReceived Alt %u BlockNum %u of length %u\r\n", alt, wBlockNum, length); + //printf("\r\nReceived Alt %u BlockNum %u of length %u\r\n", alt, wBlockNum, length); for(uint16_t i=0; i<length; i++) { diff --git a/examples/device/dfu/src/tusb_config.h b/examples/device/dfu/src/tusb_config.h index 5be58e854..2e3b89f49 100644 --- a/examples/device/dfu/src/tusb_config.h +++ b/examples/device/dfu/src/tusb_config.h @@ -77,9 +77,7 @@ #endif //------------- CLASS -------------// - -#define CFG_TUD_DFU_RUNTIME 0 -#define CFG_TUD_DFU_MODE 1 +#define CFG_TUD_DFU 1 // DFU buffer size, it has to be set to the buffer size used in TUD_DFU_DESCRIPTOR #define CFG_TUD_DFU_TRANSFER_BUFSIZE 512 |
