정렬모드 종료 시 IMU FIFO 비활성화

This commit is contained in:
2026-06-18 16:22:26 +09:00
parent 593f1d1c5b
commit 873ae0fb83
2 changed files with 14 additions and 0 deletions
@@ -12,6 +12,7 @@
#include "cmd_device.h"
#include "fstorage.h"
#include "led_control.h"
#include "app_raw.h"
/*==============================================================================
* msq? -> rsq: Device power OFF
@@ -172,6 +173,14 @@ int Cmd_mls(const ParsedCmd *cmd)
}
led_set_state((led_state_t)state);
if ((led_state_t)state == LED_STATE_OFF)
{
if (imu_fifo_capture_is_active())
{
imu_fifo_capture_disable();
}
}
dr_ble_return_1("rls:", state);
return 1;
}
@@ -122,6 +122,11 @@ int imu_fifo_capture_start(void);
*/
int imu_fifo_capture_stop_and_send_rim(void);
/**
* \brief Stop IMU FIFO capture without sending rim: packets.
*/
void imu_fifo_capture_disable(void);
/*
* mtb? / rim: binary layout (every BLE fragment)
* [ 'r' 'i' 'm' ':' ] [ total_sample_count u16 BE ] [ 12 * total_sample_count bytes ... ]