From f0ade7274abb59e50e55ccaa2d09e20296b51ace Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 19 Oct 2023 15:23:23 +0200 Subject: [PATCH] works --- bsp_q7s/obsw.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bsp_q7s/obsw.cpp b/bsp_q7s/obsw.cpp index 77ac13c4..60ededab 100644 --- a/bsp_q7s/obsw.cpp +++ b/bsp_q7s/obsw.cpp @@ -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);