Skip to content

Commit 6d3b377

Browse files
aq1018claude
andcommitted
fix CI: bump CH32_DATA_REF to pick up BTER/BTPG fields, apply rustfmt
flash-algo-v3 references set_bter/set_btpg which were added to ch32-data in 62145f5; the previously pinned 9b0d5c9 lacks them, breaking the v3 and render-YAMLs jobs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2704ad6 commit 6d3b377

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
# Bump in lockstep with Cargo.toml when those interfaces change.
1010
CH32_DATA_REPO: ch32-rs/ch32-data
11-
CH32_DATA_REF: 9b0d5c95573c99a9b07f305735fa48ad5745fb74
11+
CH32_DATA_REF: 62145f5eef6d68962b6b428ef3a901e5383480e1
1212

1313
jobs:
1414
fmt-clippy:

xtask/src/algo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ fn read_flash_device(elf: &goblin::elf::Elf<'_>, buf: &[u8]) -> Result<FlashDevi
281281
let addr = addr.ok_or_else(|| anyhow!("ELF missing FlashDevice symbol"))?;
282282

283283
let want = sym_size.max(160);
284-
let bytes =
285-
read_at(elf, buf, addr, want).ok_or_else(|| anyhow!("FlashDevice not in any LOAD segment"))?;
284+
let bytes = read_at(elf, buf, addr, want)
285+
.ok_or_else(|| anyhow!("FlashDevice not in any LOAD segment"))?;
286286
let mut sectors = Vec::new();
287287
let mut off = 160;
288288
while off + 8 <= bytes.len() {

0 commit comments

Comments
 (0)