From 54247833c0454d808fc3cb888450c698afc8966a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 23 Sep 2024 19:43:11 +1000 Subject: [PATCH] AP_Logger: add and use global NaNf float value --- libraries/AP_Logger/AP_Logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Logger/AP_Logger.h b/libraries/AP_Logger/AP_Logger.h index a18b061e11..20f38a2e03 100644 --- a/libraries/AP_Logger/AP_Logger.h +++ b/libraries/AP_Logger/AP_Logger.h @@ -372,7 +372,7 @@ public: void handle_log_send(); bool in_log_download() const; - float quiet_nanf() const { return nanf("0x4152"); } // "AR" + float quiet_nanf() const { return NaNf; } // "AR" double quiet_nan() const { return nan("0x4152445550490a"); } // "ARDUPI" // returns true if msg_type is associated with a message