[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user