diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-01-05 23:37:56 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-05 23:37:56 +0100 |
commit | 5a78233aa7793be3a019b9c808b903e760ddda23 (patch) | |
tree | 413e659e70661a353e6f252b831bbb298da0cfc5 | |
parent | d9663aa6f0b4d5cae5b7dc3f44d5d0bbb55a0b41 (diff) |
make sure to return DFU_RET_ZLP from handle_{up,dn}load()
-rw-r--r-- | usb-dfu-experiment/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 */ |