| ... | ... |
@@ -71,7 +71,6 @@ Pebble.addEventListener("ready", function() {
|
| 71 | 71 |
}); |
| 72 | 72 |
|
| 73 | 73 |
Pebble.addEventListener("appmessage", function(e) {
|
| 74 |
- console.log('Received message: ' + JSON.stringify(e.payload));
|
|
| 75 | 74 |
if (e.payload.dataKey && e.payload.dataLine) {
|
| 76 | 75 |
enqueue(e.payload.dataKey, e.payload.dataLine); |
| 77 | 76 |
} |
| ... | ... |
@@ -34,7 +34,6 @@ static HealthActivityMask minute_activity[1440]; |
| 34 | 34 |
static uint16_t minute_data_size = 0; |
| 35 | 35 |
static uint16_t minute_index = 0; |
| 36 | 36 |
static time_t minute_first = 0, minute_last = 0; |
| 37 |
-static unsigned sent = 0; |
|
| 38 | 37 |
static bool modal_displayed = false; |
| 39 | 38 |
static char global_buffer[1024]; |
| 40 | 39 |
|
| ... | ... |
@@ -221,8 +220,6 @@ send_minute_data(HealthMinuteData *data, HealthActivityMask activity_mask, |
| 221 | 220 |
time_t key) {
|
| 222 | 221 |
int32_t int_key = key / 60; |
| 223 | 222 |
|
| 224 |
- if (sent > 10) return; |
|
| 225 |
- |
|
| 226 | 223 |
if (key % 60 != 0) {
|
| 227 | 224 |
APP_LOG(APP_LOG_LEVEL_WARNING, |
| 228 | 225 |
"Discarding %" PRIi32 " second from time key %" PRIi32, |
| ... | ... |
@@ -271,10 +268,6 @@ send_minute_data(HealthMinuteData *data, HealthActivityMask activity_mask, |
| 271 | 268 |
if (!phone.first_key) phone.first_key = int_key; |
| 272 | 269 |
phone.current_key = int_key; |
| 273 | 270 |
update_progress(); |
| 274 |
- |
|
| 275 |
- APP_LOG(APP_LOG_LEVEL_INFO, "sent data for key %" PRIi32, int_key); |
|
| 276 |
- |
|
| 277 |
- sent += 1; |
|
| 278 | 271 |
} |
| 279 | 272 |
|
| 280 | 273 |
static bool |