Skip to content

Commit

Permalink
fix: convert error
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Oct 24, 2024
1 parent 4a580b8 commit c9c6bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pisugar-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fn handle_request(core: Arc<Mutex<PiSugarCore>>, req: &str) -> String {
Ok(ntp_datetime) => {
sys_write_time(ntp_datetime.into());
if let Ok(core) = core_cloned.lock() {
let _ = core.write_time(dt.into());
let _ = core.write_time(ntp_datetime.into());
}
}
Err(e) => log::warn!("Sync NTP time error: {}", e)
Expand Down

0 comments on commit c9c6bf1

Please sign in to comment.