From 953edad1ab750b30555d4ae428d7cf462dca330f Mon Sep 17 00:00:00 2001 From: Alex Lisitsyn Date: Wed, 22 Feb 2023 18:03:37 +0800 Subject: [PATCH] modbus: fix common parameters include order --- .../protocols/modbus/mb_example_common/include/modbus_params.h | 2 ++ examples/protocols/modbus/mb_example_common/modbus_params.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/protocols/modbus/mb_example_common/include/modbus_params.h b/examples/protocols/modbus/mb_example_common/include/modbus_params.h index 6060fa83a8..aca085752f 100644 --- a/examples/protocols/modbus/mb_example_common/include/modbus_params.h +++ b/examples/protocols/modbus/mb_example_common/include/modbus_params.h @@ -13,6 +13,8 @@ #ifndef _DEVICE_PARAMS #define _DEVICE_PARAMS +#include + // This file defines structure of modbus parameters which reflect correspond modbus address space // for each modbus register type (coils, discreet inputs, holding registers, input registers) #pragma pack(push, 1) diff --git a/examples/protocols/modbus/mb_example_common/modbus_params.c b/examples/protocols/modbus/mb_example_common/modbus_params.c index 8a5bbd45f1..fb5a0e41ac 100644 --- a/examples/protocols/modbus/mb_example_common/modbus_params.c +++ b/examples/protocols/modbus/mb_example_common/modbus_params.c @@ -7,7 +7,6 @@ * Description: * C file to define parameter storage instances *====================================================================================*/ -#include #include "modbus_params.h" // Here are the user defined instances for device parameters packed by 1 byte