From ba7532a4fed28115f9a950b4df5f127e4415a976 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 26 Jul 2022 02:52:40 +0800 Subject: [PATCH] fix backup length we were accidentally also backing up the WF200 firmware as well, chop that off so that the analysis scripts & restore works correctly. --- tools/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/backup.py b/tools/backup.py index ba31a81ec..11663dbda 100755 --- a/tools/backup.py +++ b/tools/backup.py @@ -495,7 +495,7 @@ def main(): else: with open("backup.pddb", "wb") as file: start_addr = locs['LOC_PDDB'][0] - 0x1000 - total_length = locs['LOC_EC'][0] - locs['LOC_PDDB'][0] + 0x1000 + total_length = locs['LOC_WF200'][0] - locs['LOC_PDDB'][0] + 0x1000 progress = ProgressBar(min_value=0, max_value=total_length, prefix='Backing up ').start() block_size = 4096 amount_read = 0