diff --git a/xiao_controller_code/main.go b/xiao_controller_code/main.go index ccc7a4e..7212a3d 100644 --- a/xiao_controller_code/main.go +++ b/xiao_controller_code/main.go @@ -124,7 +124,7 @@ func main() { // Only read and update sensor data // with an active bluetooth connection // and when `isCapturing` is set to true - if isBleConnected { + if isBleConnected && isCapturing { X, Y, Z, _ := accel.ReadRotation() x, y, z, _ := accel.ReadAcceleration()