BLE 연결이 끊어지는 경우 비동기 측정 상태로 인한 먹통 현상 방지

- main.c: BLE disconnected -> maa_async_abort() 함수 호출
- dr_adc121s051c: maa_async_abort() 함수에서 상태를 IDLE로 초기화 및 정리
This commit is contained in:
jhChun
2026-03-24 18:18:52 +09:00
parent 4e880bca86
commit 3f07065de2
2 changed files with 11 additions and 2 deletions

View File

@@ -1032,11 +1032,14 @@ static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
switch (p_ble_evt->header.evt_id)
{
/* BLE 연결이 끊어지는 경우 */
case BLE_GAP_EVT_DISCONNECTED:
DBG_PRINTF("[BLE] Disconnected\r\n");
ble_connection_st = 0;
m_conn_handle = BLE_CONN_HANDLE_INVALID;
m_tx_in_progress = false;
maa_async_abort(); // 비동기 측정 상태에 의한 먹통 현상 방지
if (device_status == true)
{