From 487b9eb9bea77d7542ab371225b6681108d249c0 Mon Sep 17 00:00:00 2001 From: corruptbear Date: Thu, 18 Jul 2024 13:05:31 -0700 Subject: [PATCH] add guard around for imu interrupt clearance --- software/firmware/src/tasks/app_task_ranging.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/software/firmware/src/tasks/app_task_ranging.c b/software/firmware/src/tasks/app_task_ranging.c index 3062b967..948f51f3 100644 --- a/software/firmware/src/tasks/app_task_ranging.c +++ b/software/firmware/src/tasks/app_task_ranging.c @@ -134,7 +134,9 @@ static void handle_notification(app_notification_t notification) #endif #endif } +#ifndef _TEST_IMU_DATA imu_clear_interrupts(); +#endif } if (((notification & APP_NOTIFY_NETWORK_LOST)) || ((notification & APP_NOTIFY_NETWORK_CONNECTED)) || ((notification & APP_NOTIFY_VERIFY_CONFIGURATION)))