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

Commit 7e09ce12 authored by David Scherba's avatar David Scherba Committed by Steve Kondik
Browse files

Bluetooth: Changing AT command parser to return OK to AT strings with no commands (i.e., AT<CR>)

Previously, Android AT command parser would treat AT strings with no commands as unsolicited input
and would silently toss them.  The correct behavior, per ITU-T V.250 Section 5.6, is to reply OK.
parent 804ee498
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ public class AtParser {
        // Ok we have a command that starts with AT. Process it
        int index = 2;
        AtCommandResult result =
                new AtCommandResult(AtCommandResult.UNSOLICITED);
                new AtCommandResult(AtCommandResult.OK);
        while (index < input.length()) {
            char c = input.charAt(index);