Skip to content

Commit

Permalink
fix: rtti usage by dynamic_pointer_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Nov 21, 2023
1 parent 7bf8563 commit 17d76f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions isobus/src/nmea2000_message_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.send_can_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::CourseOverGroundSpeedOverGroundRapidUpdate),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->cogSogTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->cogSogTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority2);
}
Expand All @@ -395,7 +395,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.get_fast_packet_protocol().send_multipacket_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::Datum),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->datumTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->datumTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::PriorityDefault6);
}
Expand All @@ -410,7 +410,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.get_fast_packet_protocol().send_multipacket_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::GNSSPositionData),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->gnssPositionDataTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->gnssPositionDataTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority3);
}
Expand All @@ -425,7 +425,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.send_can_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::PositionDeltaHighPrecisionRapidUpdate),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->positionDeltaHighPrecisionRapidUpdateTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->positionDeltaHighPrecisionRapidUpdateTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority2);
}
Expand All @@ -440,7 +440,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.send_can_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::PositionRapidUpdate),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->positionRapidUpdateTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->positionRapidUpdateTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority2);
}
Expand All @@ -455,7 +455,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.send_can_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::RateOfTurn),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->rateOfTurnTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->rateOfTurnTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority2);
}
Expand All @@ -470,7 +470,7 @@ namespace isobus
transmitSuccessful = CANNetworkManager::CANNetwork.send_can_message(static_cast<std::uint32_t>(CANLibParameterGroupNumber::VesselHeading),
messageBuffer.data(),
messageBuffer.size(),
std::dynamic_pointer_cast<InternalControlFunction>(targetInterface->vesselHeadingTransmitMessage.get_control_function()),
std::static_pointer_cast<InternalControlFunction>(targetInterface->vesselHeadingTransmitMessage.get_control_function()),
nullptr,
CANIdentifier::Priority2);
}
Expand Down

0 comments on commit 17d76f6

Please sign in to comment.