Skip to content

Commit

Permalink
AP_ExternalAHRS: correct VectorNAV handling of error term
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 12, 2024
1 parent f389549 commit c3b6127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ bool AP_ExternalAHRS_VectorNav::decode_latest_term()
if (nmea.error_response) {
GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "VectorNav received VNERR code: %s", nmea.term);
} else if (strlen(message_to_send) > 6 &&
strncmp(nmea.term, &message_to_send[6], nmea.term_offset != 0)) { // Start after "VNXXX,"
strncmp(nmea.term, &message_to_send[6], nmea.term_offset) != 0) { // Start after "VNXXX,"
return false;
}
return true;
Expand Down

0 comments on commit c3b6127

Please sign in to comment.