From 3623d4706d3ed0ee3a7c334fc7b79086ba426a88 Mon Sep 17 00:00:00 2001 From: Noah Gruenert Date: Thu, 4 Dec 2025 19:11:46 -0800 Subject: [PATCH] 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 --- examples/magic_wand/imu_provider.h | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/magic_wand/imu_provider.h b/examples/magic_wand/imu_provider.h index d7d6ad7..209bb74 100644 --- a/examples/magic_wand/imu_provider.h +++ b/examples/magic_wand/imu_provider.h @@ -99,7 +99,6 @@ namespace { // Read each sample, removing it from the device's FIFO buffer if (!IMU.readGyroscope(data[0], data[1], data[2])) { Serial.println("Failed to read gyroscope data"); - break; } new_samples += 1; }