-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
When using the AT_slave example I found that I would only get a response to the first AT command I sent. I am working with version 1.2.3 but don't think the issue is only in this version.
I have debugged the issue and believe the issue is in command.c CMD_Process(void)
void CMD_Process(void)
{
static char command[CMD_SIZE];
static unsigned i = 0; // This should not be declared as "static"
/* Process all commands */
while (IsNewCharReceived() == SET)
{
command[i] = GetNewChar();
#if 0 /* echo On */
PRINTF("%c", command[i]);
#endif
if (command[i] == AT_ERROR_RX_CHAR)
{
i = 0;
com_error(AT_RX_ERROR);
break;
}
Metadata
Metadata
Assignees
Labels
No labels