mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 23:43:34 +08:00
multiple: Fix abs(int) usage on float values
This commit is contained in:
committed by
Mathieu Bresciani
parent
5f9443add4
commit
b21ad6af14
@@ -249,7 +249,7 @@ build_gps_response(uint8_t *buffer, size_t *size)
|
||||
|
||||
if (lat < 0) {
|
||||
msg.latitude_ns = 1;
|
||||
lat = abs(lat);
|
||||
lat = fabs(lat);
|
||||
}
|
||||
|
||||
int deg;
|
||||
|
||||
Reference in New Issue
Block a user