aboutsummaryrefslogtreecommitdiffstats
path: root/dfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'dfu.c')
-rw-r--r--dfu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dfu.c b/dfu.c
index 4dedc08..7a72e9a 100644
--- a/dfu.c
+++ b/dfu.c
@@ -217,6 +217,9 @@ dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
break;
#endif
+ buf[0] = OP_CODE_IMAGE_SIZE_REQ;
+ ble_send_cp (b, buf, 1);
+
ble_wait_setup (b, OP_CODE_VALIDATE);
buf[0] = OP_CODE_VALIDATE;
if (ble_send_cp (b, buf, 1))