AP_Baro: Fix BMP581 initialization error

This commit is contained in:
cuav-chen2 2025-02-08 09:15:31 +08:00 committed by Randy Mackay
parent bddabb6042
commit 77137844c3

View File

@ -114,7 +114,7 @@ bool AP_Baro_BMP581::init()
return false;
}
if ((status & 0b10) == 0 || (status & 0b100) == 1) {
if ((status & 0b10) == 0 || (status & 0b100)) {
return false;
}