Skip to content

Commit

Permalink
agh, of course there's also grapefruit...
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Dec 14, 2024
1 parent ee14af8 commit 976a9ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drv/grapefruit-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;
use drv_cpu_seq_api::{PowerState, StateChangeReason};
use drv_spi_api::{SpiDevice, SpiServer};
use drv_stm32xx_sys_api as sys_api;
use idol_runtime::{NotificationHandler, RequestError};
Expand Down Expand Up @@ -285,6 +285,7 @@ impl<S: SpiServer + Clone> idl::InOrderSequencerImpl for ServerImpl<S> {
&mut self,
_: &RecvMessage,
state: PowerState,
_: StateChangeReason,
) -> Result<(), RequestError<drv_cpu_seq_api::SeqError>> {
match (self.get_state_impl(), state) {
(PowerState::A2, PowerState::A0)
Expand Down Expand Up @@ -327,7 +328,7 @@ impl<S: SpiServer> NotificationHandler for ServerImpl<S> {
}

mod idl {
use drv_cpu_seq_api::SeqError;
use drv_cpu_seq_api::{SeqError, StateChangeReason};
include!(concat!(env!("OUT_DIR"), "/server_stub.rs"));
}

Expand Down

0 comments on commit 976a9ab

Please sign in to comment.