close cameras before cutting power
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@ -58,6 +58,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
Log::level = Log::WARN;
|
||||
|
||||
uvosled led;
|
||||
int uvosledRet = uvosled_connect(&led);
|
||||
int ret;
|
||||
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
QCoreApplication::setOrganizationName("UVOS");
|
||||
QCoreApplication::setOrganizationDomain("uvos.xyz");
|
||||
@ -77,9 +82,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
QSettings settings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName());
|
||||
|
||||
uvosled led;
|
||||
int uvosledRet = uvosled_connect(&led);
|
||||
|
||||
if(uvosledRet >= 0)
|
||||
{
|
||||
qDebug()<<"uvosled_poweron";
|
||||
@ -149,9 +151,10 @@ int main(int argc, char *argv[])
|
||||
pipe.setProfile(profile);
|
||||
}
|
||||
|
||||
int ret = a.exec();
|
||||
ret = a.exec();
|
||||
|
||||
cameras.store(settings);
|
||||
}
|
||||
|
||||
if(uvosledRet >= 0)
|
||||
uvosled_poweroff(&led);
|
||||
|
Reference in New Issue
Block a user