more changes and linking
This commit is contained in:
@@ -182,12 +182,8 @@ async fn safe_main() -> anyhow::Result<()> {
|
||||
.or_else(|err| {
|
||||
info!("rtc module error: {:?}", err);
|
||||
board.board_hal.general_fault(true);
|
||||
board.board_hal.get_esp().time()
|
||||
})
|
||||
.map_err(|err| -> Result<(), _> {
|
||||
bail!("time error {}", err);
|
||||
})
|
||||
.unwrap();
|
||||
anyhow::Ok(board.board_hal.get_esp().time())
|
||||
})?;
|
||||
|
||||
//check if we know the time current > 2020 (plausibility checks, this code is newer than 2020)
|
||||
if cur.year() < 2020 {
|
||||
|
||||
Reference in New Issue
Block a user