WIP: Start impl auto switch feature #811
@ -88,8 +88,8 @@ int obsw::obsw(int argc, char* argv[]) {
|
|||||||
|
|
||||||
void obsw::autoSwitchHandling() {
|
void obsw::autoSwitchHandling() {
|
||||||
std::string autoSwitchTarget;
|
std::string autoSwitchTarget;
|
||||||
auto switchToTarget = [](xsc_libnor_chip_t chip, xsc_libnor_copy_t copy) {
|
auto switchToTarget = [&](xsc_libnor_chip_t chip, xsc_libnor_copy_t copy) {
|
||||||
sif::debug << "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;
|
||||||
// A bit of delay to ensure printout works..
|
// A bit of delay to ensure printout works..
|
||||||
|
Loading…
Reference in New Issue
Block a user