replace Arecord with Qtmultimedia (requiers pulse?)
This commit is contained in:
10
power.cpp
10
power.cpp
@ -1,6 +1,14 @@
|
||||
#include "power.h"
|
||||
#include <QProcess>
|
||||
|
||||
Power::Power(QObject *parent) : QObject(parent)
|
||||
Power::Power(QSettings *settings, Microcontroller* micro, QObject *parent) : QObject(parent), _micro(micro), _settings(settings)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Power::syncoff()
|
||||
{
|
||||
_settings->sync();
|
||||
for(unsigned int i = 0; i < _micro->getLastState().size(); i++) _micro->relayOff(i);
|
||||
QProcess::execute ( "syncoff" );
|
||||
}
|
||||
|
Reference in New Issue
Block a user