Skip to content

Commit b62887d

Browse files
committed
Defined SMPServer as typedef of templated Server
Reorganized includes
1 parent 83b7f60 commit b62887d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/ConvoyLeader/src/App.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
#include <Arduino.h>
4747
#include <Board.h>
4848
#include <MqttClient.h>
49-
#include <SerialMuxProtServer.hpp>
50-
#include "SerialMuxChannels.h"
49+
#include <SimpleTimer.hpp>
50+
#include <StateMachine.h>
5151
#include <V2VClient.h>
52+
#include "SerialMuxChannels.h"
5253
#include "LongitudinalController.h"
53-
#include <SimpleTimer.hpp>
5454

5555
/******************************************************************************
5656
* Macros
@@ -175,7 +175,7 @@ class App
175175
*
176176
* @tparam tMaxChannels set to MAX_CHANNELS, defined in SerialMuxChannels.h.
177177
*/
178-
SerialMuxProtServer<MAX_CHANNELS> m_smpServer;
178+
SMPServer m_smpServer;
179179

180180
/**
181181
* MQTTClient Instance

lib/ConvoyLeader/src/SerialMuxChannels.h

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
*****************************************************************************/
3838

3939
#include <Arduino.h>
40+
#include <SerialMuxProtServer.hpp>
4041

4142
/******************************************************************************
4243
* Macros
@@ -73,6 +74,9 @@
7374
* Types and Classes
7475
*****************************************************************************/
7576

77+
/** SerialMuxProt Server with fixed template argument. */
78+
typedef SerialMuxProtServer<MAX_CHANNELS> SMPServer;
79+
7680
/** Struct of the "Command" channel payload. */
7781
typedef struct _Command
7882
{

0 commit comments

Comments
 (0)