mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
desktop: fixed swap_float()
get indexes right
This commit is contained in:
parent
62f98b091f
commit
24a7a18481
@ -57,7 +57,7 @@ float swap_float(float f)
|
|||||||
int i;
|
int i;
|
||||||
in.f = f;
|
in.f = f;
|
||||||
for (i=0; i<4; i++) {
|
for (i=0; i<4; i++) {
|
||||||
out.b[4-i] = in.b[i];
|
out.b[3-i] = in.b[i];
|
||||||
}
|
}
|
||||||
return out.f;
|
return out.f;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user