Fork of ublox-cellular-base to add LARA-R2 support
Fork of ublox-cellular-base by
Diff: UbloxCellularBase.cpp
- Revision:
- 15:93b157a47b8d
- Parent:
- 14:e420232ee4e7
- Child:
- 16:afb3ca2d9915
- Child:
- 17:a01b693a2e63
diff -r e420232ee4e7 -r 93b157a47b8d UbloxCellularBase.cpp --- a/UbloxCellularBase.cpp Tue Jan 09 13:20:15 2018 +0000 +++ b/UbloxCellularBase.cpp Thu Jul 12 10:13:45 2018 +0500 @@ -30,7 +30,8 @@ /* Array to convert the 3G qual number into a median EC_NO_LEV number. */ /* 0 1 2 3 4 5 6 7 */ -const int qualConvert3G[] = {44, 41, 35, 29, 23, 17, 11, 7}; + /* 44, 41, 35, 29, 23, 17, 11, 7*/ +const int qualConvert3G[] = {-2, -4, -7, -10, -13, -16, -19, -21}; /* Array to convert the 3G "rssi" number into a dBm RSCP value rounded up to the * nearest whole number. @@ -1027,9 +1028,10 @@ // 3G if ((qual >= 0) && (qual <= 7)) { qual = qualConvert3G[qual]; + rssiRet = rscpConvert3G[rssi]; + rssiRet -= qual; } - rssiRet = rscpConvert3G[rssi]; - rssiRet -= qual; + break; case LTE: // LTE