Skip to content

Commit

Permalink
Hotfix - temporary prevent flashing apps for PoE models
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Aug 7, 2021
1 parent 0681eaf commit 119c299
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/device/DeviceBootloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@ void DeviceBootloader::saveDepthaiApplicationPackage(std::string path, Pipeline&
std::tuple<bool, std::string> DeviceBootloader::flashDepthaiApplicationPackage(std::function<void(float)> progressCb, std::vector<uint8_t> package) {
streamId_t streamId = stream->getStreamId();

// Bug in NETWORK bootloader in version 0.0.12 < 0.1.0 - flashing can cause a soft brick
auto version = getVersion();
if(bootloaderType == Type::NETWORK && version < Version(0, 1, 0)) {
throw std::invalid_argument("Network bootloader requires version 0.1.0 or higher to flash applications. Current version: " + version.toString());
}

// send request to FLASH BOOTLOADER
dai::bootloader::request::UpdateFlash updateFlash;
updateFlash.storage = dai::bootloader::request::UpdateFlash::SBR;
Expand Down

0 comments on commit 119c299

Please sign in to comment.