From 5c9003dd027ded0c1ea7d79b83b0dc430777807a Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Tue, 17 Dec 2024 09:19:14 -0800 Subject: [PATCH] AP_Volz_Protocol: Moved member variable definition within proper #define block to prevent unused variable warning --- libraries/AP_Volz_Protocol/AP_Volz_Protocol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.h b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.h index d17fa76570..c6c9bc338f 100644 --- a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.h +++ b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.h @@ -88,7 +88,6 @@ private: // Loop in thread to output to uart void loop(); - uint8_t sent_count; void init(void); @@ -120,6 +119,8 @@ private: void read_telem(); void process_response(const CMD &cmd); + uint8_t sent_count; + struct { CMD_ID types[3] { CMD_ID::READ_CURRENT,