From cf5bc0ac47e40f5d26e3b736e44812f497782c2b Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Wed, 22 Nov 2023 12:09:46 +0100 Subject: [PATCH] fix: Fix rebase errors --- cargo-espflash/src/main.rs | 1 - espflash/src/bin/espflash.rs | 1 + espflash/src/flasher/mod.rs | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cargo-espflash/src/main.rs b/cargo-espflash/src/main.rs index 4a20f645..083fc334 100644 --- a/cargo-espflash/src/main.rs +++ b/cargo-espflash/src/main.rs @@ -577,7 +577,6 @@ fn save_image(args: SaveImageArgs) -> Result<()> { flash_data, args.save_image_args.merge, args.save_image_args.skip_padding, - args.save_image_args.skip_padding, )?; Ok(()) diff --git a/espflash/src/bin/espflash.rs b/espflash/src/bin/espflash.rs index e93999d7..e3bf0f3c 100644 --- a/espflash/src/bin/espflash.rs +++ b/espflash/src/bin/espflash.rs @@ -239,6 +239,7 @@ fn flash(args: FlashArgs, config: &Config) -> Result<()> { let flash_data = FlashData::new( bootloader, partition_table, + args.flash_args.partition_table_offset, args.flash_args.format, args.flash_args.target_app_partition, flash_settings, diff --git a/espflash/src/flasher/mod.rs b/espflash/src/flasher/mod.rs index aac8032f..48c0662c 100644 --- a/espflash/src/flasher/mod.rs +++ b/espflash/src/flasher/mod.rs @@ -298,6 +298,7 @@ impl FlashData { pub fn new( bootloader: Option<&Path>, partition_table: Option<&Path>, + partition_table_offset: Option, image_format: Option, target_app_partition: Option, flash_settings: FlashSettings,