works
EIVE/eive-obsw/pipeline/pr-main This commit looks good Details

This commit is contained in:
Robin Müller 2023-10-19 15:23:23 +02:00
parent 674202c6fb
commit f0ade7274a
Signed by: muellerr
GPG Key ID: A649FB78196E3849
1 changed files with 4 additions and 4 deletions

View File

@ -88,10 +88,10 @@ int obsw::obsw(int argc, char* argv[]) {
void obsw::autoSwitchHandling() {
std::string autoSwitchTarget;
auto switchToTarget = [](xsc_libnor_chip_t chip, xsc_libnor_copy_t copy) {
sif::debug << "Detected ASWI=" << autoSwitchTarget
<< "in ProASIC scratch buffer, auto-switching to image " << int(chip) << " "
<< int(copy) << std::endl;
auto switchToTarget = [&](xsc_libnor_chip_t chip, xsc_libnor_copy_t copy) {
sif::warning << "Detected ASWI=" << autoSwitchTarget
<< " in ProASIC scratch buffer, auto-switching to image " << int(chip) << " "
<< int(copy) << std::endl;
// A bit of delay to ensure printout works..
TaskFactory::delayTask(500);
scratch::clearValue(scratch::AUTO_SWITCH_IMAGE);