Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1431298 authored by Danke Xie's avatar Danke Xie Committed by Steve Kondik
Browse files

GPS: Fix the GSM decoder missing last letter issue

The GSM decoder in GpsNetInitiatedHandler.java had a bug
which caused the last letter to be dropped in some cases.

CRs-Fixed: 215920
parent 7e09ce12
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public class GpsNetInitiatedHandler {
    			/* If the next 7-bit character is a CR (0x0D) and it is the last
    			 ** character, then it indicates a padding character. Drop it.
    			 */
    			if (nPckidx == num_bytes || (cCurr >> 1) == CHAR_CR)
                        if (nPckidx == num_bytes && (cCurr >> 1) == CHAR_CR)
    			{
    				break;
    			}