mirror of
https://github.com/brendanhaines/RasPi.git
synced 2025-04-11 19:24:51 -06:00
fixes echoServerAdvanced.cpp parsing motor values
This commit is contained in:
parent
ad408bf90c
commit
37f4a31437
@ -99,7 +99,7 @@ int main( int argc, char* argv[] )
|
||||
else if( strncmp( buffer, "SET_MOTOR_", strlen("SET_MOTOR_") ) == 0 )
|
||||
{
|
||||
int motor = atoi( buffer + 10 );
|
||||
int speed = atoi( buffer + 12 );
|
||||
int speed = atoi( buffer + 13 );
|
||||
if( speed < MOTOR_MIN )
|
||||
{
|
||||
speed = MOTOR_MIN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user