AP_FlashStorage: fixed build warning

This commit is contained in:
Andrew Tridgell 2020-04-19 11:11:48 +10:00
parent e63e5ba130
commit 6dafa82c7c
1 changed files with 3 additions and 3 deletions

View File

@ -476,7 +476,7 @@ AP_FlashStorage::SectorState AP_FlashStorage::sector_header::get_state(void) con
if (state1 == 0xFFFFFFF1 &&
state2 == 0xFFFFFFFF &&
state3 == 0xFFFFFFFF &&
signature == signature &&
signature1 == signature &&
signature2 == 0xFFFFFFFF &&
signature3 == 0xFFFFFFFF) {
return SECTOR_STATE_AVAILABLE;
@ -484,7 +484,7 @@ AP_FlashStorage::SectorState AP_FlashStorage::sector_header::get_state(void) con
if (state1 == 0xFFFFFFF1 &&
state2 == 0xFFFFFFF2 &&
state3 == 0xFFFFFFFF &&
signature == signature &&
signature1 == signature &&
signature2 == signature &&
signature3 == 0xFFFFFFFF) {
return SECTOR_STATE_IN_USE;
@ -492,7 +492,7 @@ AP_FlashStorage::SectorState AP_FlashStorage::sector_header::get_state(void) con
if (state1 == 0xFFFFFFF1 &&
state2 == 0xFFFFFFF2 &&
state3 == 0xFFFFFFF3 &&
signature == signature &&
signature1 == signature &&
signature2 == signature &&
signature3 == signature) {
return SECTOR_STATE_FULL;