mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 15:10:16 +00:00
修复AP热点显示少一位
Signed-off-by: shenqihang <shenqihang@huawei.com>
This commit is contained in:
parent
d63ca0723a
commit
fa809c457e
@ -630,7 +630,7 @@ std::string HexToString(const std::string &str)
|
||||
if (str.length() <= 0) {
|
||||
return result;
|
||||
}
|
||||
for (size_t i = 0; i < str.length() - STEP_2BIT; i += STEP_2BIT) {
|
||||
for (size_t i = 0; i < str.length() - 1; i += STEP_2BIT) {
|
||||
std::string byte = str.substr(i, STEP_2BIT);
|
||||
char chr = 0;
|
||||
int strTemp = CheckDataLegalHex(byte);
|
||||
|
Loading…
Reference in New Issue
Block a user