aboutsummaryrefslogtreecommitdiff
path: root/client/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.c')
-rw-r--r--client/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/main.c b/client/main.c
index 4d7f484..4eed232 100644
--- a/client/main.c
+++ b/client/main.c
@@ -33,5 +33,10 @@ int main(int argc, char **argv) {
g_w2_state.ping_received = false;
w2_send_ping();
}
+
+ if (w2_timer_end(W2_TIMER_INFO) > W2_BATTERY_MEAS_FREQ) {
+ w2_send_info();
+ w2_timer_start(W2_TIMER_INFO);
+ }
}
}