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