Skip to content

Commit

Permalink
Fix casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor-99 committed Jan 14, 2025
1 parent f8d0edc commit d638af7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class GPSSensor : public SemanticComponentInterface<sensor_msgs::msg::NavSatFix>
*
* \return Service
*/
int8_t get_service() const { return static_cast<int8_t>(state_interfaces_[1].get().get_value()); }
uint16_t get_service() const
{
return static_cast<uint16_t>(state_interfaces_[1].get().get_value());
}

/**
* Return latitude reported by a GPS
Expand Down

0 comments on commit d638af7

Please sign in to comment.