Skip to content

Commit

Permalink
Take jefe param by value
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Feb 13, 2024
1 parent cbdbfc4 commit 83c2b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drv/gimlet-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn main() -> ! {
let jefe = Jefe::from(JEFE.get_task_id());
let spi = drv_spi_api::Spi::from(SPI.get_task_id());
let hf = hf_api::HostFlash::from(HF.get_task_id());
match ServerImpl::init(&sys, &jefe, spi, hf) {
match ServerImpl::init(&sys, jefe, spi, hf) {
// Set up everything nicely, time to start serving incoming messages.
Ok(mut server) => {
let mut buffer = [0; idl::INCOMING_SIZE];
Expand Down Expand Up @@ -167,7 +167,7 @@ const TIMER_INTERVAL: u64 = 10;
impl<S: SpiServer + Clone> ServerImpl<S> {
fn init(
sys: &sys_api::Sys,
jefe: &Jefe,
jefe: Jefe,
spi: S,
hf: hf_api::HostFlash,
) -> Result<Self, i2c::ResponseCode> {
Expand Down

0 comments on commit 83c2b1e

Please sign in to comment.