Skip to content

Commit

Permalink
AP_Baro: Fix BMP581 initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
cuav-chen2 authored and peterbarker committed Feb 8, 2025
1 parent 43cdf1a commit aee973f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Baro/AP_Baro_BMP581.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit aee973f

Please sign in to comment.