static char buffer[50];
char* motor_cmd ()
{
return buffer;
}
If buffer is declared outside the function, it is global. What use is it to return a pointer to a global variable?
static char buffer[50];
char* motor_cmd ()
{
return buffer;
}
If buffer is declared outside the function, it is global. What use is it to return a pointer to a global variable?