WIP: Start impl auto switch feature #811
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user