From ecfb3130af00aebeba1e3dd2f371ea4d8813e4e4 Mon Sep 17 00:00:00 2001 From: weiting2 Date: Tue, 4 Aug 2020 11:56:46 +0800 Subject: [PATCH] GATT_WriteCharValue can work fine with len(ins) <=19 --- .../examples/simple_central/cc26xx/app/simple_central.c | 4 +++- .../cc26xx/app/headstage/headstage_version.h | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c index c82329125..2f9769064 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c @@ -2311,7 +2311,9 @@ static void SimepleBLECentral_getDeviceinfo(uint8_t i, uint8_t *pEvtData, uint8_ devList[i].version_info[k++ - len[0]] = *pEvtData++; } else if( j < len[0] + len[1] + len[2] ){ - devList[i].battery_info[k++ -len[0] - len[1]] = *pEvtData++; +// devList[i].battery_info[k++ -len[0] - len[1]] = *pEvtData++; + k ++; + pEvtData++; } j++; } 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 9d649ad4c..b94aa756a 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 @@ -4,13 +4,13 @@ #define VERSION_DATE_YEAR 20 #define VERSION_DATE_MONTH 8 -#define VERSION_DATE_DAY 3 -#define VERSION_DATE_HOUR 17 -#define VERSION_DATE_MINUTE 26 +#define VERSION_DATE_DAY 4 +#define VERSION_DATE_HOUR 11 +#define VERSION_DATE_MINUTE 56 // this is NOT the version hash !! // it's the last version hash -#define VERSION_HASH 798cefb3ac8803a6be1cc6bb4d37c5cf07597e33 +#define VERSION_HASH 8b8fe1874984637f5bfd03d769c1ff706d361a28 #define VERSION_GIT_BRANCH simple_central_ma_pin #endif