정렬모드(IMU FIFO) 중에는 배터리/온도 보호 체크 스킵

This commit is contained in:
2026-06-25 17:03:41 +09:00
parent 4c5e624830
commit c835513727
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ static void battery_work_handler(struct k_work *work)
{
ARG_UNUSED(work);
if (processing)
if (processing || imu_fifo_is_active())
{
return;
}
+5
View File
@@ -689,6 +689,11 @@ int imu_fifo_read_latest(uint8_t *sample_bytes,
return 0;
}
bool imu_fifo_is_active(void)
{
return fifo_active;
}
int imu_fifo_stop(void)
{
int ret = 0;
+6
View File
@@ -15,6 +15,7 @@
#define IMU_I2C_H__
#include <stdint.h>
#include <stdbool.h>
#define IMU_FIFO_SAMPLE_BYTES 12U
#define IMU_FIFO_RIM_TARGET_SAMPLES 15U
@@ -82,6 +83,11 @@ int imu_fifo_read_latest(uint8_t *sample_bytes,
uint16_t max_samples,
uint16_t *out_count);
/**
* @brief Return whether IMU FIFO streaming is active.
*/
bool imu_fifo_is_active(void);
/**
* @brief FIFO와 accel/gyro 전원 끄기
*