From c3fca7a2cde2ac451dda9d66e9b43834270c9010 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Sun, 1 Mar 2015 14:31:14 +0300 Subject: [PATCH] Minor fixes of timer system --- mainwindow.cpp | 2 ++ mainwindow.h | 1 + 2 files changed, 3 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 367718a..9dfb725 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -51,6 +51,8 @@ MainWindow::MainWindow(QWidget *parent) : else sendTimer.setInterval(5); sendTimer.start(); + tempWarning.setInterval(10000); + sinceLastTemp.start(); } diff --git a/mainwindow.h b/mainwindow.h index c01202d..9b57a8f 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -32,6 +32,7 @@ public: QVector gcode; QTimer sendTimer; QTimer statusTimer; + QTimer tempWarning; QElapsedTimer sinceLastTemp; QSettings settings; QStringList recentFiles;