From 00471756563974d196c06486d36a1d3ada03342c Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Mon, 29 Apr 2024 14:37:43 +0800 Subject: [PATCH] Fixed https://github.com/lewisxhe/SensorLib/issues/11 --- src/SensorBHI260AP.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SensorBHI260AP.hpp b/src/SensorBHI260AP.hpp index cf28edd..51d7933 100644 --- a/src/SensorBHI260AP.hpp +++ b/src/SensorBHI260AP.hpp @@ -525,7 +525,7 @@ class SensorBHI260AP private: static void handleISR() { - *(bool *)(__data_available) = true; + __data_available = true; }