summaryrefslogtreecommitdiff
path: root/usb-dfu-experiment
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-05 23:37:56 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-05 23:37:56 +0100
commit5a78233aa7793be3a019b9c808b903e760ddda23 (patch)
tree413e659e70661a353e6f252b831bbb298da0cfc5 /usb-dfu-experiment
parentd9663aa6f0b4d5cae5b7dc3f44d5d0bbb55a0b41 (diff)
make sure to return DFU_RET_ZLP from handle_{up,dn}load()
Diffstat (limited to 'usb-dfu-experiment')
-rw-r--r--usb-dfu-experiment/main.c5
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 */
personal git repositories of Harald Welte. Your mileage may vary