Skip to content

Commit

Permalink
Fix preexisting clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
goodhoko committed Dec 14, 2023
1 parent 463c042 commit f3e8c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ pub fn jump_to_bootloader_if_requested(dp: &stm32::Peripherals) {
let magic_num: u32 = read_backup_register(dp);

if magic_num == MAGIC_BOOTLOADER_NUMBER {
enable_backup_domain(&dp);
enable_backup_domain(dp);
write_to_backup_register(0, dp);
disable_backup_domain(&dp);
disable_backup_domain(dp);

unsafe {
cortex_m::asm::bootload(BOOTLOADER_FIRMWARE_MEMORY_LOCATION as *const u32);
Expand Down

0 comments on commit f3e8c5c

Please sign in to comment.