From 57e35f39b1dc4798bc107a7f1bf920e5a1ceea44 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 4 Jan 2023 01:39:14 +0000 Subject: [PATCH] AP_NMEA_Output: align param info structures to save flash --- libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp b/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp index e60b15d742..b2d7f5e33f 100644 --- a/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp +++ b/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp @@ -32,10 +32,8 @@ public: static AP_SerialManager serial_manager; -#define GOBJECT(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, (const void *)&v, {group_info : class::var_info} } const struct AP_Param::Info var_info[] = { -// GOBJECT(serial_manager, "SERIAL", AP_SerialManager), - { AP_PARAM_GROUP, "SERIAL", Parameters::k_param_serial_manager, (const void *)&serial_manager, {group_info : AP_SerialManager::var_info} }, + { "SERIAL", (const void *)&serial_manager, {group_info : AP_SerialManager::var_info}, 0, Parameters::k_param_serial_manager, AP_PARAM_GROUP }, AP_VAREND };