mirror of https://github.com/ArduPilot/ardupilot
AP_FlashStorage: fixed build warning
This commit is contained in:
parent
e63e5ba130
commit
6dafa82c7c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue