Merge pull request #3 from berry120/master
"counter" in cmd_proc() should be declared as static to persist its value across method invocations.v1
commit
debfbcb2e0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue