AP_Baro: Fix BMP581 initialization error

This commit is contained in:
cuav-chen2 2025-02-08 09:15:31 +08:00 committed by Peter Barker
parent 43cdf1a03d
commit aee973f4de

View File

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