Skip to content

Commit

Permalink
AP_RCTelemetry: make sure enum is signed
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Apr 28, 2024
1 parent 53b938d commit f86cb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_RCTelemetry/AP_CRSF_Telem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ uint16_t AP_CRSF_Telem::get_altitude_packed()
{
int32_t altitude_dm = get_nav_alt_m(Location::AltFrame::ABOVE_HOME) * 10;

enum : uint32_t {
enum : int32_t {
ALT_MIN_DM = 10000, // minimum altitude in dm
ALT_THRESHOLD_DM = 0x8000 - ALT_MIN_DM, // altitude of precision changing in dm
ALT_MAX_DM = 0x7ffe * 10 - 5, // maximum altitude in dm
Expand Down

0 comments on commit f86cb78

Please sign in to comment.