From 5a78233aa7793be3a019b9c808b903e760ddda23 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 5 Jan 2012 23:37:56 +0100 Subject: make sure to return DFU_RET_ZLP from handle_{up,dn}load() --- usb-dfu-experiment/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usb-dfu-experiment') diff --git a/usb-dfu-experiment/main.c b/usb-dfu-experiment/main.c index 4cc267e..4d1d59c 100644 --- a/usb-dfu-experiment/main.c +++ b/usb-dfu-experiment/main.c @@ -299,14 +299,14 @@ void USBDDriverCallbacks_InterfaceSettingChanged(unsigned char interface, int USBDFU_handle_upload(uint16_t val, uint16_t len, int first) { TRACE_DEBUG("DFU: handle_upload()\n"); - return 0; + return DFU_RET_ZLP; } /* DFU callback */ int USBDFU_handle_dnload(uint16_t val, uint16_t len, int first) { TRACE_DEBUG("DFU: handle_dnload()\n"); - return 0; + return DFU_RET_ZLP; } /* DFU callback */ @@ -359,7 +359,6 @@ int main(void) continue; } else usbConn = 1; - TRACE_DEBUG("."); } } /** \endcond */ -- cgit v1.2.3