diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-05-22 09:52:56 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 09:52:56 +0000 |
| commit | ab7d129e152a9450b2a6445397365bcb3a3ce183 (patch) | |
| tree | 24428457642306f1bee8182ffe58da9a03e7554c /embassy-boot/boot/src | |
| parent | d55b9bc6e2de528e1351b992bb30f54ec6f76b6d (diff) | |
| parent | 18c62aa5b475161c0cbd98c23c006691e084cb2b (diff) | |
Merge #1473
1473: Protect default implementations for FirmwareUpdater and BootLoader r=lulf a=rmja
It seems as if the arm compiler can does not care about whether the bootloader symbols are undefined if the default() function is never used. The x64 compiler does care however, so this change ensures that we can instantiate the types from tests.
Co-authored-by: Rasmus Melchior Jacobsen <[email protected]>
Diffstat (limited to 'embassy-boot/boot/src')
| -rw-r--r-- | embassy-boot/boot/src/firmware_updater.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-boot/boot/src/firmware_updater.rs b/embassy-boot/boot/src/firmware_updater.rs index 92987825f..aeea206f9 100644 --- a/embassy-boot/boot/src/firmware_updater.rs +++ b/embassy-boot/boot/src/firmware_updater.rs | |||
| @@ -40,6 +40,7 @@ pub struct FirmwareUpdater { | |||
| 40 | dfu: Partition, | 40 | dfu: Partition, |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | #[cfg(target_os = "none")] | ||
| 43 | impl Default for FirmwareUpdater { | 44 | impl Default for FirmwareUpdater { |
| 44 | fn default() -> Self { | 45 | fn default() -> Self { |
| 45 | extern "C" { | 46 | extern "C" { |
