Skip to content

Commit

Permalink
Fix up to date check
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 28, 2023
1 parent 7b6f55d commit f9dfc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/states/firmware_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async fn do_update(board: &mut Board) -> UpdateResult {
let response = match result {
Ok(response) => match response.status {
Status::Ok => response,
Status::NoContent => return UpdateResult::AlreadyUpToDate,
Status::NotModified => return UpdateResult::AlreadyUpToDate,
_ => {
warn!("HTTP response error: {}", response.status);
return UpdateResult::Failed(UpdateError::HttpRequestFailed);
Expand Down

0 comments on commit f9dfc0d

Please sign in to comment.