diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-09-21 10:20:26 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-09-21 10:20:26 +0200 |
commit | b56723af2ad8843870e814c6451189ecddbae750 (patch) | |
tree | d477e58f1b5ec2f34e93000bd72799180e646335 /src/modules/mavlink/orb_listener.c | |
parent | 32fbf80ab84d3d8ebcb93ec1d7f20470ebb4db1f (diff) | |
download | px4-firmware-b56723af2ad8843870e814c6451189ecddbae750.tar.gz px4-firmware-b56723af2ad8843870e814c6451189ecddbae750.tar.bz2 px4-firmware-b56723af2ad8843870e814c6451189ecddbae750.zip |
mavlink: bugfix
Diffstat (limited to 'src/modules/mavlink/orb_listener.c')
-rw-r--r-- | src/modules/mavlink/orb_listener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/orb_listener.c b/src/modules/mavlink/orb_listener.c index ed02b17e1..cec2fdc43 100644 --- a/src/modules/mavlink/orb_listener.c +++ b/src/modules/mavlink/orb_listener.c @@ -162,7 +162,7 @@ cm_uint16_from_m_float(float m) return 65535; } - return m * 0.01f; + return (uint16_t)(m * 100.0f); } void |