Skip to content

Commit

Permalink
Remove underscore from new_vehicle_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb Horsewell authored and julianoes committed Sep 19, 2022
1 parent b988c60 commit 213a402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavsdk/core/system_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void SystemImpl::process_heartbeat(const mavlink_message_t& message)
} else {
const auto new_vehicle_type = static_cast<MAV_TYPE>(heartbeat.type);
if (heartbeat.autopilot != MAV_AUTOPILOT_INVALID && _vehicle_type != new_vehicle_type &&
_new_vehicle_type != MAV_TYPE_GENERIC) {
new_vehicle_type != MAV_TYPE_GENERIC) {
LogWarn() << "Vehicle type changed (new type: " << static_cast<unsigned>(heartbeat.type)
<< ", old type: " << static_cast<unsigned>(_vehicle_type) << ")";
_vehicle_type = new_vehicle_type;
Expand Down

0 comments on commit 213a402

Please sign in to comment.