Fix compiler warning (#1827)

* Fix compiler warning

* Fix compiler warning

* Friggin C-lang
This commit is contained in:
Mark Thompson 2024-01-29 18:07:32 -06:00 committed by GitHub
parent 8b2598fdac
commit a4f6bbda5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,6 +150,7 @@ bool FlashUtilityView::flash_firmware(std::filesystem::path::string_type path) {
std::memcpy(&shared_memory.bb_data.data[0], path.c_str(), (path.length() + 1) * 2); std::memcpy(&shared_memory.bb_data.data[0], path.c_str(), (path.length() + 1) * 2);
m4_init(portapack::spi_flash::image_tag_flash_utility, portapack::memory::map::m4_code, false); m4_init(portapack::spi_flash::image_tag_flash_utility, portapack::memory::map::m4_code, false);
m0_halt(); m0_halt();
return true; // fixes compiler warning (line should not be reached due to halt)
} }
void FlashUtilityView::focus() { void FlashUtilityView::focus() {