summaryrefslogtreecommitdiff
path: root/metawatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-03-28 16:10:03 +0100
committerJavier S. Pedro <maemo@javispedro.com>2013-03-28 16:10:03 +0100
commitf6535eab4e66b89147fd143c58c7ef0f43aa0ecd (patch)
tree67eac299ea8bc3213e6bfab66af6c185f6def6c7 /metawatch
parent6f2da9ad865d04f51836f014637edb94ddb53a59 (diff)
downloadsowatch-f6535eab4e66b89147fd143c58c7ef0f43aa0ecd.tar.gz
sowatch-f6535eab4e66b89147fd143c58c7ef0f43aa0ecd.zip
minor format change
Diffstat (limited to 'metawatch')
-rw-r--r--metawatch/metawatch.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp
index 27f1143..f05e362 100644
--- a/metawatch/metawatch.cpp
+++ b/metawatch/metawatch.cpp
@@ -849,10 +849,14 @@ void MetaWatch::timedReconnect()
void MetaWatch::timedSend()
{
+ // If there are packets to be sent...
if (_toSend.count() > 0) {
+ // Send the packets to the watch
realSend(_toSend.dequeue());
}
+ // If we sent all packets...
if (_toSend.count() == 0) {
+ // Stop the send timer to save battery
_sendTimer->stop();
}
}