summaryrefslogtreecommitdiffstats
path: root/boot/dfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/dfu.c')
-rw-r--r--boot/dfu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot/dfu.c b/boot/dfu.c
index f931a6e..4054520 100644
--- a/boot/dfu.c
+++ b/boot/dfu.c
@@ -36,7 +36,7 @@ static struct {
const struct usb_dfu_descriptor dfu_function = {
.bLength = sizeof (struct usb_dfu_descriptor),
.bDescriptorType = DFU_FUNCTIONAL,
- .bmAttributes = USB_DFU_CAN_DOWNLOAD,
+ .bmAttributes = USB_DFU_CAN_DOWNLOAD | USB_DFU_WILL_DETACH,
.wDetachTimeout = 255,
.wTransferSize = 1024,
.bcdDFUVersion = 0x011A,
@@ -115,6 +115,8 @@ static int usbdfu_getstatus_complete (usbd_device *usbd_dev, struct usb_setup_da
uint32_t *dat = (uint32_t *) (prog.buf + i);
flash_program_word (baseaddr + i, *dat);
}
+
+ max7219_report_addr (baseaddr);
}
flash_lock();