attempt to read CIS

This commit is contained in:
weiting2
2020-08-04 17:54:09 +08:00
parent 8b43e81c11
commit 2dbc33f12f
2 changed files with 7 additions and 6 deletions
@@ -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;
@@ -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