diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-04 22:44:21 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-04 22:44:21 +0200 |
| commit | 84bfe9b8c93ea8634ce2192fb719034b5c13e5da (patch) | |
| tree | 55438e15f173ab3ce23f48ede11876e1a8aab23e /embassy-boot | |
| parent | a77ce1088d927266a23cbc971aed6facd3b7f918 (diff) | |
Align examples with bootloader changes
Diffstat (limited to 'embassy-boot')
| -rw-r--r-- | embassy-boot/nrf/src/lib.rs | 2 | ||||
| -rw-r--r-- | embassy-boot/rp/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot/nrf/src/lib.rs b/embassy-boot/nrf/src/lib.rs index d3774d308..a2176f609 100644 --- a/embassy-boot/nrf/src/lib.rs +++ b/embassy-boot/nrf/src/lib.rs | |||
| @@ -16,7 +16,7 @@ pub struct BootLoader<const BUFFER_SIZE: usize = PAGE_SIZE> { | |||
| 16 | aligned_buf: AlignedBuffer<BUFFER_SIZE>, | 16 | aligned_buf: AlignedBuffer<BUFFER_SIZE>, |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | impl<const BUFFER_SIZE: usize> Default for BootLoader<BUFFER_SIZE> { | 19 | impl Default for BootLoader<PAGE_SIZE> { |
| 20 | /// Create a new bootloader instance using parameters from linker script | 20 | /// Create a new bootloader instance using parameters from linker script |
| 21 | fn default() -> Self { | 21 | fn default() -> Self { |
| 22 | extern "C" { | 22 | extern "C" { |
diff --git a/embassy-boot/rp/src/lib.rs b/embassy-boot/rp/src/lib.rs index c163db131..0031efa63 100644 --- a/embassy-boot/rp/src/lib.rs +++ b/embassy-boot/rp/src/lib.rs | |||
| @@ -52,7 +52,7 @@ impl<const BUFFER_SIZE: usize> BootLoader<BUFFER_SIZE> { | |||
| 52 | } | 52 | } |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | impl<const BUFFER_SIZE: usize> Default for BootLoader<BUFFER_SIZE> { | 55 | impl Default for BootLoader<ERASE_SIZE> { |
| 56 | /// Create a new bootloader instance using parameters from linker script | 56 | /// Create a new bootloader instance using parameters from linker script |
| 57 | fn default() -> Self { | 57 | fn default() -> Self { |
| 58 | extern "C" { | 58 | extern "C" { |
