Skip to content

Commit 9ff1b4c

Browse files
committed
Adding include guards for header files
1 parent c11fa73 commit 9ff1b4c

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

src/ConnectionManager.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* a commercial license, send an email to [email protected].
1616
*/
1717

18-
#ifndef CONNECTION_MANAGER_H_INCLUDED
19-
#define CONNECTION_MANAGER_H_INCLUDED
18+
#ifndef CONNECTION_MANAGER_H_
19+
#define CONNECTION_MANAGER_H_
2020

2121
#define ARDUINO_CLOUD_DEBUG_LEVEL 2
2222

@@ -99,4 +99,5 @@ inline void debugMessage(char *_msg, int _debugLevel, bool _timestamp = true, bo
9999
inline void setDebugMessageLevel(int _debugLevel){
100100
debugMessageLevel = _debugLevel;
101101
}
102-
#endif
102+
103+
#endif /* CONNECTION_MANAGER_H_ */

src/EthernetConnectionManager.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* a commercial license, send an email to [email protected].
1616
*/
1717

18+
#ifndef ETHERNET_CONNECTION_MANAGER_H_
19+
#define ETHERNET_CONNECTION_MANAGER_H_
20+
1821
/******************************************************************************
1922
* INCLUDE
2023
******************************************************************************/
@@ -41,7 +44,7 @@ class EthConnectionManager : public ConnectionManager {
4144
private:
4245

4346
void changeConnectionState(NetworkConnectionState _newState);
44-
47+
4548
const int CHECK_INTERVAL_IDLE = 100;
4649
const int CHECK_INTERVAL_INIT = 100;
4750
const int CHECK_INTERVAL_CONNECTING = 500;
@@ -58,3 +61,5 @@ class EthConnectionManager : public ConnectionManager {
5861
EthernetUDP udp;
5962
int connectionTickTimeInterval;
6063
};
64+
65+
#endif

src/GSMConnectionManager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* a commercial license, send an email to [email protected].
1616
*/
1717

18+
#ifndef GSM_CONNECTION_MANAGER_H_
19+
#define GSM_CONNECTION_MANAGER_H_
20+
1821
/******************************************************************************
1922
* INCLUDE
2023
******************************************************************************/
@@ -61,3 +64,5 @@ class GSMConnectionManager : public ConnectionManager {
6164
int connectionTickTimeInterval;
6265

6366
};
67+
68+
#endif /* GSM_CONNECTION_MANAGER_H_ */

src/WiFiConnectionManager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* a commercial license, send an email to [email protected].
1616
*/
1717

18+
#ifndef WIFI_CONNECTION_MANAGER_H_
19+
#define WIFI_CONNECTION_MANAGER_H_
20+
1821
/******************************************************************************
1922
* INCLUDE
2023
******************************************************************************/
@@ -60,3 +63,5 @@ class WiFiConnectionManager : public ConnectionManager {
6063
WiFiClient wifiClient;
6164
int connectionTickTimeInterval;
6265
};
66+
67+
#endif /* WIFI_CONNECTION_MANAGER_H_ */

0 commit comments

Comments
 (0)