Skip to content

Commit 9745318

Browse files
committed
feat: send current timer time alongside logs
1 parent 8499e53 commit 9745318

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ async fn logger_task(global_state: GlobalState) {
347347

348348
ws::send_packet(structs::TimerPacket {
349349
tag: None,
350-
data: structs::TimerPacketInner::Logs { logs: tmp_logs },
350+
data: structs::TimerPacketInner::Logs {
351+
current_time: Some(unsafe { crate::stackmat::CURRENT_TIME }),
352+
logs: tmp_logs,
353+
},
351354
})
352355
.await;
353356
}

src/structs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub enum TimerPacketInner {
9090
auto_setup: bool,
9191
},
9292
Logs {
93+
current_time: Option<u64>,
9394
logs: Vec<String>,
9495
},
9596
Battery {

0 commit comments

Comments
 (0)