Skip to content

Commit

Permalink
Adjust power on wait time (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasKoch committed Dec 4, 2023
1 parent 5299a76 commit dea8326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ublox-cellular/src/power.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ where

pwr.set_high().ok();

BlockingTimer::after(Duration::from_secs(1)).wait();

if let Err(e) = self.wait_power_state(PowerState::On, Duration::from_secs(10)) {
error!("Failed to power on modem");
return Err(e);
} else {
trace!("Modem powered on");
}

BlockingTimer::after(Duration::from_secs(3)).wait();
}
_ => {
// Software restart
Expand Down

0 comments on commit dea8326

Please sign in to comment.