diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-10-17 00:20:13 +0400 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-10-17 00:20:13 +0400 |
commit | c5d7070a23e67a57fd37339be2e065be367cce6d (patch) | |
tree | 1cdb51535beb1286bb07dbb414b9051fceff1d5a | |
parent | 722a6aec7d97a45bd71d4a8f8259552c3ed8cd80 (diff) |
-rw-r--r-- | src/pebble-my-data.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pebble-my-data.c b/src/pebble-my-data.c index a991287..3036507 100644 --- a/src/pebble-my-data.c +++ b/src/pebble-my-data.c @@ -150,6 +150,8 @@ static void request_update() { bitmap_layer_set_bitmap(update_icon_layer, update_icon_bitmap); update_in_progress = true; + app_comm_set_sniff_interval(SNIFF_INTERVAL_REDUCED); + // prepare request DictionaryIterator *send_message; app_message_outbox_begin(&send_message); @@ -581,6 +583,8 @@ void in_received_handler(DictionaryIterator *received, void *context) { if (config_interval) schedule_update(config_interval*1000, MSG_PERIODIC_UPDATE); } + + app_comm_set_sniff_interval(SNIFF_INTERVAL_NORMAL); } } |