When issuing an AT command to the modem which ends in a ? or %, the prefix of the result may not contain the last character, which prevents existing stripping logic from working. For example, +CREG? might return something like CREG: 2,1,"11BE","D787762",6. With this PR, Modem._basic_command will instead return 2,1,"11BE","D787762",6, the raw data, consistent with what is returned for commands without the ? or %.
When issuing an AT command to the modem which ends in a
?
or%
, the prefix of the result may not contain the last character, which prevents existing stripping logic from working. For example,+CREG?
might return something likeCREG: 2,1,"11BE","D787762",6
. With this PR, Modem._basic_command will instead return2,1,"11BE","D787762",6
, the raw data, consistent with what is returned for commands without the?
or%
.