When the debug output is enabled could be a good idea to hide the messages related to the USB to avoid the following behavior while entering AT commands.
Currently, when entering the AT commands we cannot correct any character. If we make a mistake backspace doesn't clear the atcmd buffer and the serial keeps showing all the entered characters. These are the improvements to achieve it:
The buffer modifications when pressing backspace involve decreasing the _atcmdindex and clearing the character.
To clean up the serial output print the space character, and a new backspace.
When the debug output is enabled could be a good idea to hide the messages related to the USB to avoid the following behavior while entering AT commands.
Currently, when entering the AT commands we cannot correct any character. If we make a mistake backspace doesn't clear the atcmd buffer and the serial keeps showing all the entered characters. These are the improvements to achieve it:
The final result.