From 2dbc33f12f5936fbcb6f9bb88970438494d2edcc Mon Sep 17 00:00:00 2001 From: weiting2 Date: Tue, 4 Aug 2020 17:54:09 +0800 Subject: [PATCH] attempt to read CIS --- .../simple_central/cc26xx/app/mem_board_central.h | 9 +++++---- .../cc26xx/app/headstage/headstage_version.h | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h index 96bda85de..22d3258f3 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h @@ -324,7 +324,7 @@ static void mem_send_ins(uint16_t handle, uint8_t *value){ if ( req.pValue != NULL ) { // read CIS later or not - if((*value | 0xF0) == 0x70){ + if((*value & 0xF0) == 0x70){ wait_for_response = 1; } @@ -353,9 +353,7 @@ static void mem_send_ins(uint16_t handle, uint8_t *value){ { procedureInProgress = TRUE; if(wait_for_response){ - char get_cis_check_point[15] = "check_point"; - UART_write(uart_handle, get_cis_check_point, 15); -// flag_notify(EVT_MEM_GET_CIS); + flag_notify(EVT_MEM_GET_CIS); } } } @@ -374,6 +372,9 @@ static void mem_central_get_cis(){ read_cis_req.handle = BLE_CHAR2_HANDLE; status = GATT_ReadCharValue(connHandle, &read_cis_req, selfEntity); + char get_cis_check_point[15] = "check_point"; + UART_write(uart_handle, get_cis_check_point, 15); + if (status == SUCCESS) { procedureInProgress = TRUE; diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_version.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_version.h index 2533f0542..ea297a98f 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_version.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_version.h @@ -6,11 +6,11 @@ #define VERSION_DATE_MONTH 8 #define VERSION_DATE_DAY 4 #define VERSION_DATE_HOUR 17 -#define VERSION_DATE_MINUTE 49 +#define VERSION_DATE_MINUTE 54 // this is NOT the version hash !! // it's the last version hash -#define VERSION_HASH 31a2fb297530ee03fcbd9deec71f405e4e786785 +#define VERSION_HASH 8b43e81c1118b55ba5d35a5a4dfe69957d195840 #define VERSION_GIT_BRANCH simple_central_ma_pin #endif