정렬모드 종료 시 IMU FIFO 비활성화
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user