From 9a9cf40c744c43e5f57cae32ccb3e79dcf67da24 Mon Sep 17 00:00:00 2001 From: YiChin Date: Wed, 19 Feb 2020 16:01:18 +0800 Subject: [PATCH] return version from CIS --- .../cc26xx/app/headstage/headstage.h | 13 +++++++------ .../cc26xx/app/headstage/headstage_version.h | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h index ebd556f5d..e04c6e56d 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h @@ -493,6 +493,7 @@ static uint8 channel_table[CHANNEL_COUNT] = {0}; */ static int8 channel_pointer = -1; static uint8_t not_buf[BLE_DAT_BUFF_SIZE] = {0}; +static uint8_t cis_buf[BLE_CIS_BUFF_SIZE] = {0}; /*===================================== ==== headstage function prototype ==== @@ -1123,13 +1124,13 @@ static void update_ZM_instruction(uint8 *ins) { } case CIS_VERSION:{ - cdr_buf[0] = VERSION_DATE_YEAR; - cdr_buf[1] = VERSION_DATE_MONTH; - cdr_buf[2] = VERSION_DATE_DAY; - cdr_buf[3] = VERSION_DATE_HOUR; - cdr_buf[4] = VERSION_DATE_MINUTE; + cis_buf[0] = VERSION_DATE_YEAR; + cis_buf[1] = VERSION_DATE_MONTH; + cis_buf[2] = VERSION_DATE_DAY; + cis_buf[3] = VERSION_DATE_HOUR; + cis_buf[4] = VERSION_DATE_MINUTE; - SimpleProfile_SetParameter(BLE_CDR_BUFF_CHAR, BLE_CDR_BUFF_SIZE, cdr_buf); + SimpleProfile_SetParameter(BLE_CIS_BUFF_CHAR, BLE_CIS_BUFF_SIZE, cis_buf); break; } 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 7fbe6cc68..1d4b1148c 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 @@ -5,7 +5,7 @@ #define VERSION_DATE_YEAR 20 #define VERSION_DATE_MONTH 2 #define VERSION_DATE_DAY 19 -#define VERSION_DATE_HOUR 15 -#define VERSION_DATE_MINUTE 48 +#define VERSION_DATE_HOUR 16 +#define VERSION_DATE_MINUTE 01 #endif