Skip to content

Commit d7f92af

Browse files
committed
Make 101 trace to Serial instead of Serial1
1 parent 5fa5e72 commit d7f92af

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

libraries/CurieBLE/examples/IMUBleNotification/IMUBleNotification.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ void loop() {
9292
// if a central is connected to peripheral:
9393
if (central)
9494
{
95-
Serial1.print("Connected to central: ");
95+
Serial.print("Connected to central: ");
9696
// print the central's MAC address:
97-
Serial1.println(central.address());
97+
Serial.println(central.address());
9898

99-
Serial1.print("IMU buffer size: ");
100-
Serial1.println(sizeof(imuBuf));
99+
Serial.print("IMU buffer size: ");
100+
Serial.println(sizeof(imuBuf));
101101

102102
// turn on the LED to indicate the connection:
103103
digitalWrite(13, HIGH);
@@ -108,8 +108,8 @@ void loop() {
108108
currentMillis = sentTime = millis();
109109
while (central.connected())
110110
{
111-
// Take IMU data every 20 msec
112-
if ((millis() - sentTime) >= 40)
111+
// Take IMU data every 100 msec
112+
if ((millis() - sentTime) >= 100)
113113
{
114114
recordImuData(0);
115115
sentTime = millis();
@@ -119,8 +119,8 @@ void loop() {
119119

120120
// when the central disconnects, turn off the LED:
121121
digitalWrite(13, LOW);
122-
Serial1.print("Disconnected from central: ");
123-
Serial1.println(central.address());
122+
Serial.print("Disconnected from central: ");
123+
Serial.println(central.address());
124124
}
125125
}
126126

0 commit comments

Comments
 (0)