Skip to content

Commit 25f0803

Browse files
committed
Disable loopback by default in HC-05 example
1 parent bb7bf8e commit 25f0803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/bluetooth_hc05/bluetooth_hc05/bluetooth_hc05.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <SPI.h>
99

10-
const int SPI_CS_PIN = 10; // 10 by default, 53 on mega
10+
const int SPI_CS_PIN = 53; // 10 by default, 53 on mega
1111
const int INT_PIN = 2;
1212

1313
CanHackerLineReader *lineReader = NULL;
@@ -25,7 +25,7 @@ void setup() {
2525

2626

2727
canHacker = new CanHacker(interfaceStream, debugStream, SPI_CS_PIN);
28-
canHacker->enableLoopback(); // uncomment this for loopback
28+
//canHacker->enableLoopback(); // uncomment this for loopback
2929
lineReader = new CanHackerLineReader(canHacker);
3030

3131
pinMode(INT_PIN, INPUT);
@@ -75,4 +75,4 @@ void handleError(const CanHacker::ERROR error) {
7575

7676
delay(2000);
7777
} ;
78-
}
78+
}

0 commit comments

Comments
 (0)