From 8d550213da363af1ca95252b4699bdf30efab5cb Mon Sep 17 00:00:00 2001 From: Ilya Guterman Date: Mon, 11 Jan 2021 18:10:09 +0200 Subject: [PATCH 01/11] stm-dfu: fix dnload wBlockNum wraparound --- plugins/dfu/dfu-target-stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git plugins/dfu/dfu-target-stm.c plugins/dfu/dfu-target-stm.c index faf027d1..b9adb725 100644 --- plugins/dfu/dfu-target-stm.c +++ plugins/dfu/dfu-target-stm.c @@ -364,7 +364,7 @@ dfu_target_stm_download_element (DfuTarget *target, g_bytes_get_size (bytes_tmp)); /* ST uses wBlockNum=0 for DfuSe commands and wBlockNum=1 is reserved */ if (!dfu_target_download_chunk (target, - (guint8) (i + 2), + (i + 2), bytes_tmp, error)) return FALSE; -- 2.29.2