From f6535eab4e66b89147fd143c58c7ef0f43aa0ecd Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 28 Mar 2013 16:10:03 +0100 Subject: minor format change --- metawatch/metawatch.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } -- cgit v1.2.3