[bug] fixed in sim7600ce.c

1. if (rssi == 99 || ber != 99) {
        return -1;
    }
this is a bug, as datasheet show, value 99 means 'not known or not detectable', so it should been fixed as below:
    if (rssi == 99 || ber == 99) {
        return -1;
    }
This commit is contained in:
LinPeng
2020-01-20 15:35:49 +08:00
committed by GitHub
parent 0eb8c18660
commit f29745bac9

View File

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