Merge pull request #3 from berry120/master

"counter" in cmd_proc() should be declared as static to persist its value across method invocations.
v1
Agis Zisimatos 2015-04-24 20:55:15 +03:00
commit debfbcb2e0
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ void cmd_proc(int &stepAz, int &stepEl)
char incomingByte;
char *p=buffer;
char *str;
int counter=0;
static int counter=0;
char data[100];
double angleAz,angleEl;