Skip to content

Commit 9a6dbfa

Browse files
committed
Add missing include guards and use generic transport include
1 parent 8d59415 commit 9a6dbfa

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/utility/HCI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#include "ATT.h"
21-
#include "HCIUartTransport.h"
21+
#include "HCITransport.h"
2222
#include "L2CAPSignaling.h"
2323

2424
#include "HCI.h"

src/utility/HCITransport.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20+
#ifndef _HCI_TRANSPORT_INTERFACE_H_
21+
#define _HCI_TRANSPORT_INTERFACE_H_
22+
2023
#include <Arduino.h>
2124

2225
class HCITransportInterface {
@@ -34,3 +37,5 @@ class HCITransportInterface {
3437
};
3538

3639
extern HCITransportInterface& HCITransport;
40+
41+
#endif

src/utility/HCIUartTransport.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20+
#ifndef _HCI_UART_TRANSPORT_H_
21+
#define _HCI_UART_TRANSPORT_H_
22+
2023
#include "HCITransport.h"
2124

2225
class HCIUartTransportClass : public HCITransportInterface {
@@ -39,3 +42,5 @@ class HCIUartTransportClass : public HCITransportInterface {
3942
HardwareSerial* _uart;
4043
unsigned long _baudrate;
4144
};
45+
46+
#endif

0 commit comments

Comments
 (0)