firmware: fix compilation warning

pull/1801/head
Sebastien Bourdeauducq 2022-01-11 09:31:26 +08:00
parent 12ee326fb4
commit 4e3e0d129c
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ pub mod drtio {
static mut SEEN_ASYNC_ERRORS: u8 = 0;
pub unsafe fn get_async_errors() -> u8 {
let mut errors = SEEN_ASYNC_ERRORS;
let errors = SEEN_ASYNC_ERRORS;
SEEN_ASYNC_ERRORS = 0;
errors
}