From 37d9d0c2cdeb50c3badd0432e53186d961c15747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 27 Mar 2018 16:15:18 +0200 Subject: [PATCH] tap_esc: remove NAN_VALUE define and use existing NAN instead --- src/drivers/tap_esc/tap_esc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/drivers/tap_esc/tap_esc.cpp b/src/drivers/tap_esc/tap_esc.cpp index 8d9559f0dc..fe85e19cad 100644 --- a/src/drivers/tap_esc/tap_esc.cpp +++ b/src/drivers/tap_esc/tap_esc.cpp @@ -60,8 +60,6 @@ #include "tap_esc_common.h" -#define NAN_VALUE (0.0f/0.0f) - #ifndef B250000 #define B250000 250000 #endif @@ -844,7 +842,7 @@ int TAP_ESC::control_callback(uint8_t control_group, uint8_t control_index, floa control_group == actuator_controls_s::GROUP_INDEX_ATTITUDE_ALTERNATE) && control_index == actuator_controls_s::INDEX_THROTTLE) { /* set the throttle to an invalid value */ - input = NAN_VALUE; + input = NAN; } }