From 80112051b4a2bf94a1af60bf10b0b810c5eccd8b Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 14 Jun 2023 12:42:02 -0400 Subject: [PATCH] AP_Proximity: initialize structures correctly --- libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp index 846414ee57..38827e320a 100644 --- a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp +++ b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp @@ -273,13 +273,13 @@ void AP_Proximity_RPLidarA2::get_readings() } // identify the payload data after the descriptor static const _descriptor SCAN_DATA_DESCRIPTOR[] { - RPLIDAR_PREAMBLE, 0x5A, 0x05, 0x00, 0x00, 0x40, 0x81 + { RPLIDAR_PREAMBLE, 0x5A, 0x05, 0x00, 0x00, 0x40, 0x81 } }; static const _descriptor HEALTH_DESCRIPTOR[] { - RPLIDAR_PREAMBLE, 0x5A, 0x03, 0x00, 0x00, 0x00, 0x06 + { RPLIDAR_PREAMBLE, 0x5A, 0x03, 0x00, 0x00, 0x00, 0x06 } }; static const _descriptor DEVICE_INFO_DESCRIPTOR[] { - RPLIDAR_PREAMBLE, 0x5A, 0x14, 0x00, 0x00, 0x00, 0x04 + { RPLIDAR_PREAMBLE, 0x5A, 0x14, 0x00, 0x00, 0x00, 0x04 } }; Debug(2,"LIDAR descriptor found"); if (memcmp((void*)&_payload[0], SCAN_DATA_DESCRIPTOR, sizeof(_descriptor)) == 0) {