WIP: Start impl auto switch feature #811

Closed
muellerr wants to merge 11 commits from auto-switch-image-feature into main
Showing only changes of commit 18bcb434e9 - Show all commits

View File

@ -92,9 +92,9 @@ void obsw::autoSwitchHandling() {
sif::warning << "Detected ASWI=" << autoSwitchTarget sif::warning << "Detected ASWI=" << autoSwitchTarget
<< " in ProASIC scratch buffer, auto-switching to image " << int(chip) << " " << " in ProASIC scratch buffer, auto-switching to image " << int(chip) << " "
<< int(copy) << std::endl; << int(copy) << std::endl;
scratch::clearValue(scratch::AUTO_SWITCH_IMAGE);
// A bit of delay to ensure printout works.. // A bit of delay to ensure printout works..
TaskFactory::delayTask(500); TaskFactory::delayTask(500);
scratch::clearValue(scratch::AUTO_SWITCH_IMAGE);
xsc_boot_copy(chip, copy); xsc_boot_copy(chip, copy);
}; };
if (scratch::readString(scratch::AUTO_SWITCH_IMAGE, autoSwitchTarget) == returnvalue::OK) { if (scratch::readString(scratch::AUTO_SWITCH_IMAGE, autoSwitchTarget) == returnvalue::OK) {