Skip to content

Commit

Permalink
AP_Frsky_Telem: fixed build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
night-ghost authored and tridge committed Feb 9, 2018
1 parent ac196b8 commit 739c873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,16 +617,16 @@ uint32_t AP_Frsky_Telem::calc_gps_latlng(bool *send_latitude)
// alternate between latitude and longitude
if ((*send_latitude) == true) {
if (loc.lat < 0) {
latlng = ((abs(loc.lat)/100)*6) | 0x40000000;
latlng = ((labs(loc.lat)/100)*6) | 0x40000000;
} else {
latlng = ((abs(loc.lat)/100)*6);
latlng = ((labs(loc.lat)/100)*6);
}
(*send_latitude) = false;
} else {
if (loc.lng < 0) {
latlng = ((abs(loc.lng)/100)*6) | 0xC0000000;
latlng = ((labs(loc.lng)/100)*6) | 0xC0000000;
} else {
latlng = ((abs(loc.lng)/100)*6) | 0x80000000;
latlng = ((labs(loc.lng)/100)*6) | 0x80000000;
}
(*send_latitude) = true;
}
Expand Down

0 comments on commit 739c873

Please sign in to comment.