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