Skip to content

Commit

Permalink
Add timestamp to SetState to correlate events (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Jun 27, 2023
1 parent 44ca7ae commit d06625d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drv/gimlet-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum Trace {
RailsOn,
UartEnabled,
A0(u16),
SetState(PowerState, PowerState),
SetState(PowerState, PowerState, u64),
UpdateState(PowerState),
ClockConfigWrite,
ClockConfigSuccess,
Expand Down Expand Up @@ -621,7 +621,8 @@ impl<S: SpiServer> ServerImpl<S> {
) -> Result<(), SeqError> {
let sys = sys_api::Sys::from(SYS.get_task_id());

ringbuf_entry!(Trace::SetState(self.state, state));
let now = sys_get_timer().now;
ringbuf_entry!(Trace::SetState(self.state, state, now));

ringbuf_entry_v3p3_sys_a0_vout();

Expand Down

0 comments on commit d06625d

Please sign in to comment.