diff --git a/src/cameras.cpp b/src/cameras.cpp index e3dca6f..84e6a06 100644 --- a/src/cameras.cpp +++ b/src/cameras.cpp @@ -98,8 +98,8 @@ void Cameras::trigger() for(auto& camera : cameras_) camera->cam()->trigger(); - if(led_ && !free_) - uvosled_capture(led_, lighting_.mask, lighting_.brightness, exposrueTime_*1.5, exposrueTime_*0.25); + /*if(led_ && !free_) + uvosled_capture(led_, lighting_.mask, lighting_.brightness, exposrueTime_*1.5, exposrueTime_*0.25);*/ } bool Cameras::start() @@ -111,8 +111,8 @@ bool Cameras::start() ret = false; } - if(free_ && led_) - uvosled_set_current(led_, lighting_.mask, lighting_.brightness); + /*if(free_ && led_) + uvosled_set_current(led_, lighting_.mask, lighting_.brightness);*/ return ret; } diff --git a/src/main.cpp b/src/main.cpp index 3b3e774..5e90587 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -88,8 +88,6 @@ int main(int argc, char *argv[]) // TODO: figure out how to do this better sleep(10); } - - uvosledRet = -1; Cameras cameras(uvosledRet < 0 ? nullptr : &led); cameras.setFree(false); @@ -111,7 +109,7 @@ int main(int argc, char *argv[]) QObject::connect(&w, &MainWindow::sigEditProfiles, [&cameras, &w](){showProfileDialog(&cameras); w.refreshProfiles();}); QObject::connect(&pipe, &ImagePipeline::sigResult, w.mainImageViewer(), &CvImageViewer::setImage, Qt::QueuedConnection); - QObject::connect(&pipe, &ImagePipeline::sigResult, [&w](){w->statusMsg("idle");}); + QObject::connect(&pipe, &ImagePipeline::sigResult, [&w](){w.statusMsg("idle");}); QObject::connect(&pipe, &ImagePipeline::sigInvalidProfile, &w, &MainWindow::profileInconpatible); QObject::connect(&w, &MainWindow::sigProfile, [&pipe](QString name)