summaryrefslogtreecommitdiff
path: root/qt/console
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2017-04-07 09:17:10 +0930
committerdaniel-Jones <daniel@danieljon.es>2017-04-07 09:17:10 +0930
commit9ff573e9fe4c40ffb342ce2b215042c39b518aeb (patch)
treee4168caacbb934b072da417275ea578d26229db6 /qt/console
parent1189c8c2671b2463dbca7842a81adfe00c35549c (diff)
downloadRGB-Controller-9ff573e9fe4c40ffb342ce2b215042c39b518aeb.tar.gz
RGB-Controller-9ff573e9fe4c40ffb342ce2b215042c39b518aeb.zip
Merged source into one .cpp and .h. Added serial communication from the Arduino to the host computer. Added ping/pong system to maintain a connection, once 3 failed tries have occured, the connection is force closed, this restores the ui to a desired state. A ping is sent every 60 seconds and a response is required within one second. Some debug UI additions and code is still present, to be removed.
Diffstat (limited to 'qt/console')
-rw-r--r--qt/console/Makefile1
-rw-r--r--qt/console/main.cpp6
-rwxr-xr-xqt/console/rgbbin21056 -> 25360 bytes
3 files changed, 5 insertions, 2 deletions
diff --git a/qt/console/Makefile b/qt/console/Makefile
index aca3eae..446865f 100644
--- a/qt/console/Makefile
+++ b/qt/console/Makefile
@@ -804,3 +804,4 @@ uninstall: FORCE
FORCE:
+
diff --git a/qt/console/main.cpp b/qt/console/main.cpp
index ed986ce..4771303 100644
--- a/qt/console/main.cpp
+++ b/qt/console/main.cpp
@@ -35,9 +35,11 @@ int main(int argc, char *argv[])
QTimer::singleShot(100, check);
}
else
- qDebug() << "nope." << argv[2];
+ {
+ qDebug() << "Port in use.";
+ }
}
- return a.exec();
+ return 0;
}
void check()
diff --git a/qt/console/rgb b/qt/console/rgb
index 938eacb..7028476 100755
--- a/qt/console/rgb
+++ b/qt/console/rgb
Binary files differ