Skip to content

Commit 76d322d

Browse files
committed
chore: Code cleanup
1 parent 0ea9832 commit 76d322d

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/hil.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
fi
165165
result=$(espflash_app/espflash read-flash 0 0x200 flash_content.bin 2>&1)
166166
echo "$result"
167-
if [[ ! $result =~ "Flash content suscesfully read and written to" ]]; then
167+
if [[ ! $result =~ "Flash content successfully read and written to" ]]; then
168168
exit 1
169169
fi
170170
echo "Checking if flash is empty"
@@ -180,13 +180,13 @@ jobs:
180180
run: |
181181
result=$(espflash_app/espflash save-image --merge --chip ${{ matrix.board }} ${{ env.ESPFLASH_APP }} app.bin 2>&1)
182182
echo "$result"
183-
if [[ ! $result =~ "Image suscesfully saved!" ]]; then
183+
if [[ ! $result =~ "Image successfully saved!" ]]; then
184184
exit 1
185185
fi
186186
echo "Writting binary"
187187
result=$(espflash_app/espflash write-bin 0x0 app.bin 2>&1)
188188
echo "$result"
189-
if [[ ! $result =~ "Binary suscesfully written to flash!" ]]; then
189+
if [[ ! $result =~ "Binary successfully written to flash!" ]]; then
190190
exit 1
191191
fi
192192
echo "Monitoring..."

espflash/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,3 @@ cli = [
8383
"dep:update-informer",
8484
]
8585
serialport = ["dep:serialport"]
86-
87-
# [dev-dependencies]
88-
# assert_cmd = "2.0.12"
89-
# predicates = "3.0.4"

espflash/src/bin/espflash.rs

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ pub fn erase_parts(args: ErasePartsArgs, config: &Config) -> Result<()> {
200200
.connection()
201201
.reset_after(!args.connect_args.no_stub)?;
202202

203+
info!("Specified partitions successfully erased!");
204+
203205
Ok(())
204206
}
205207

espflash/src/cli/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ pub fn save_elf_as_image(
513513
}
514514
}
515515

516-
info!("Image suscesfully saved!");
516+
info!("Image successfully saved!");
517517

518518
Ok(())
519519
}

espflash/src/flasher/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ impl Flasher {
976976
};
977977
self.write_bins_to_flash(&[segment], progress)?;
978978

979-
info!("Binary suscesfully written to flash!");
979+
info!("Binary successfully written to flash!");
980980

981981
Ok(())
982982
}
@@ -1153,7 +1153,7 @@ impl Flasher {
11531153
file.write_all(&data)?;
11541154

11551155
info!(
1156-
"Flash content suscesfully read and written to '{}'!",
1156+
"Flash content successfully read and written to '{}'!",
11571157
file_path.display()
11581158
);
11591159

0 commit comments

Comments
 (0)