Update bc35_28_95_lwm2m.c

if (!str) 
    {
        return -1;
    }
This commit is contained in:
David Lin 2020-08-10 18:20:37 +08:00 committed by GitHub
parent ad5f75d4a3
commit 3a218ec2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,10 @@ static int bc35_28_95_signal_quality_check(void)
}
str = strstr(echo.buffer, "+CSQ:");
if (!str)
{
return -1;
}
sscanf(str, "+CSQ:%d,%d", &rssi, &ber);
if (rssi == 99) {
return -1;