Skip to content

Commit

Permalink
gimletlet: fix mock seq server
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Dec 14, 2024
1 parent 77c1fd8 commit ee14af8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drv/mock-gimlet-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#![no_std]
#![no_main]

use drv_cpu_seq_api::{PowerState, SeqError};
use drv_cpu_seq_api::{PowerState, SeqError, StateChangeReason};
use idol_runtime::{NotificationHandler, RequestError};
use task_jefe_api::Jefe;
use userlib::{FromPrimitive, RecvMessage, UnwrapLite};
Expand Down Expand Up @@ -58,6 +58,7 @@ impl idl::InOrderSequencerImpl for ServerImpl {
&mut self,
_: &RecvMessage,
state: PowerState,
_: StateChangeReason,
) -> Result<(), RequestError<SeqError>> {
match (self.get_state_impl(), state) {
(PowerState::A2, PowerState::A0)
Expand Down Expand Up @@ -99,7 +100,7 @@ impl NotificationHandler for ServerImpl {
}

mod idl {
use super::SeqError;
use super::{SeqError, StateChangeReason};

include!(concat!(env!("OUT_DIR"), "/server_stub.rs"));
}

0 comments on commit ee14af8

Please sign in to comment.