Qt: Slow down sensor view polling
Vicki Pfau vi@endrift.com
Mon, 01 Oct 2018 16:36:31 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/SensorView.cpp
→
src/platform/qt/SensorView.cpp
@@ -32,7 +32,7 @@ connect(m_ui.timeNow, &QPushButton::clicked, [this] () {
m_ui.time->setDateTime(QDateTime::currentDateTime()); }); - m_timer.setInterval(2); + m_timer.setInterval(15); connect(&m_timer, &QTimer::timeout, this, &SensorView::updateSensors); if (!m_rotation || !m_rotation->readTiltX || !m_rotation->readTiltY) { m_ui.tilt->hide();