V1.1.5 Update

This commit is contained in:
Mentalflow 2024-02-23 15:14:23 +08:00
parent 76b650e019
commit 29b5b4f746
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
3 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,10 @@ This library is now complete, the remaining work is mainly maintenance and bug f
# Change Log # Change Log
**V1.1.5 2024.2.23**
+ Fix the bug of the pack vector may be accessed out of range.
**V1.1.4 2024.2.1** **V1.1.4 2024.2.1**
+ Fix the bug of vector may be accessed out of range. + Fix the bug of vector may be accessed out of range.

View File

@ -1,5 +1,5 @@
name= DLLN3X ZigBee Mesh Module Library name= DLLN3X ZigBee Mesh Module Library
version= 1.1.4 version= 1.1.5
author= Dylan Liu <mentalflow@ourdocs.cn> author= Dylan Liu <mentalflow@ourdocs.cn>
maintainer= Dylan Liu <mentalflow@ourdocs.cn> maintainer= Dylan Liu <mentalflow@ourdocs.cn>
sentence= This library allows you to use DLLN3X ZigBee mesh module very easily. sentence= This library allows you to use DLLN3X ZigBee mesh module very easily.

View File

@ -131,7 +131,7 @@ public:
{ {
data.clear(); data.clear();
for (int i = 0; i < pack_data.size(); i++) { for (int i = 0; i < pack_data.size(); i++) {
if (pack_data[i] != 0xFE) { if (pack_data[i] != 0xFE || i == pack_data.size() - 1) {
data.push_back(pack_data[i]); data.push_back(pack_data[i]);
} else if (pack_data[i + 1] == 0xFD) { } else if (pack_data[i + 1] == 0xFD) {
data.push_back(0xFF); data.push_back(0xFF);