Skip to content

Commit 3623d47

Browse files
committed
Cant compile a break outside of a loop: if (IMU.gyroscopeAvailable()) { used to be a while loop, but if we switch to an if, we must remove the break
1 parent 5daea92 commit 3623d47

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/magic_wand/imu_provider.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ namespace {
9999
// Read each sample, removing it from the device's FIFO buffer
100100
if (!IMU.readGyroscope(data[0], data[1], data[2])) {
101101
Serial.println("Failed to read gyroscope data");
102-
break;
103102
}
104103
new_samples += 1;
105104
}

0 commit comments

Comments
 (0)