]> git.scottworley.com Git - tattlekey/blobdiff - client/tattlekey.c
server: Only write CSV headers when initially creating the log file
[tattlekey] / client / tattlekey.c
index f9b74c1c14ebb98bf8f44a0daa8d41d9354a05cb..5e829d1654e608f307923efc6ec10a0ba1ce120d 100644 (file)
@@ -119,6 +119,8 @@ void service_queue() {
     switch (e.type) {
     case NEW_BUTTON_PRESS: {
       add_press(pp, &(press_t){e.buttonpress.timestamp, seq++, 0});
+      if (seq == 0)
+        new_epoch();
     } break;
     case RESEND_TIME: {
       /* OK, we're awake. Cool. Thanks! (We actually do the sends in the