From 10675ab5c4fadc329f73e0002c250b4659527088 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 11 Sep 2019 10:11:49 +1000 Subject: [PATCH] AP_HAL: correct include ordering in srxl.h The header needs stdint.h which it was only getting because it was included after stdint.h in the cpp file. Stop including standard headers before other ArduPilot headers --- libraries/AP_HAL/utility/srxl.cpp | 8 ++++---- libraries/AP_HAL/utility/srxl.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL/utility/srxl.cpp b/libraries/AP_HAL/utility/srxl.cpp index fe21d88a2a..1023daa427 100644 --- a/libraries/AP_HAL/utility/srxl.cpp +++ b/libraries/AP_HAL/utility/srxl.cpp @@ -20,13 +20,13 @@ - 2016.10.23: SRXL variant V1 sucessfully (Testbench and Pixhawk/MissionPlanner) tested with RX-9-DR M-LINK (SW v1.26) */ +#include "srxl.h" + +#include + #include #include #include -#include -#include "srxl.h" - - /* SRXL datastream characteristics for all variants */ #define SRXL_MIN_FRAMESPACE_US 8000U /* Minumum space between srxl frames in us (applies to all variants) */ diff --git a/libraries/AP_HAL/utility/srxl.h b/libraries/AP_HAL/utility/srxl.h index 257c7a9a3e..969e1a39ca 100644 --- a/libraries/AP_HAL/utility/srxl.h +++ b/libraries/AP_HAL/utility/srxl.h @@ -19,6 +19,8 @@ #pragma once +#include + /* * Decoder for SRXL protocol *