]> git.scottworley.com Git - tattlekey/blobdiff - client/tattlekey.c
client: Change wire format!: Expand `ago` field: 16 bits → 32 bits
[tattlekey] / client / tattlekey.c
index 9d255856b74a41cc93dc8d2a5a927dff6571e4ba..f9b74c1c14ebb98bf8f44a0daa8d41d9354a05cb 100644 (file)
@@ -94,7 +94,7 @@ void service_sleeps(int alarm, press_pile_t *pp) {
     press_t press;
     if (!get_press_due_for_resend(pp, now, &press))
       signal_error_by_blinking();
-    uint32_t ago = now - press.timestamp;
+    u32_t ago = now - press.timestamp;
     send_report_packet(press.seq, ago);
     press.send_count++;
     if (press.send_count < config_resend_count) {