From 96f4d090a2891d225a53cdcbab0947e590673322 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 30 Apr 2016 12:34:55 -0700 Subject: [PATCH] dont try to check the gyro status if the gyro doesnt support interrupts --- src/main/drivers/gyro_sync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/gyro_sync.c b/src/main/drivers/gyro_sync.c index 1047442c0..934708f37 100644 --- a/src/main/drivers/gyro_sync.c +++ b/src/main/drivers/gyro_sync.c @@ -32,7 +32,8 @@ static uint8_t mpuDividerDrops; bool getMpuDataStatus(gyro_t *gyro) { bool mpuDataStatus; - + if (!gyro->intStatus) + return false; gyro->intStatus(&mpuDataStatus); return mpuDataStatus; }