GATT_WriteCharValue can work fine with len(ins) <=19

This commit is contained in:
weiting2
2020-08-04 11:56:46 +08:00
parent 8b8fe18749
commit ecfb3130af
2 changed files with 7 additions and 5 deletions
@@ -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++;
}
@@ -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