diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 16:10:03 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 16:10:03 +0100 |
commit | f6535eab4e66b89147fd143c58c7ef0f43aa0ecd (patch) | |
tree | 67eac299ea8bc3213e6bfab66af6c185f6def6c7 /metawatch | |
parent | 6f2da9ad865d04f51836f014637edb94ddb53a59 (diff) | |
download | sowatch-f6535eab4e66b89147fd143c58c7ef0f43aa0ecd.tar.gz sowatch-f6535eab4e66b89147fd143c58c7ef0f43aa0ecd.zip |
minor format change
Diffstat (limited to 'metawatch')
-rw-r--r-- | metawatch/metawatch.cpp | 4 |
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(); } } |