diff --git a/commandline/blink1-tool.c b/commandline/blink1-tool.c index 3fa46caf..4f7f8876 100644 --- a/commandline/blink1-tool.c +++ b/commandline/blink1-tool.c @@ -37,8 +37,10 @@ #define getpid _getpid #endif -int millis = 300; -int delayMillis = 500; +const int millisDefault = 300; +const int delayMillisDefault = 500; +int millis = -1; +int delayMillis = -1; int numDevicesToUse = 1; int ledn = 0; @@ -50,11 +52,10 @@ uint8_t rgbbuf[3]; int verbose; int quiet=0; - //---------------------------------------------------------------------------- /* TBD: replace printf()s with something like this -void logpri(int loglevel, char* fmt, ...) + void logpri(int loglevel, char* fmt, ...) { if( loglevel < verbose ) return; va_list ap; @@ -326,6 +327,7 @@ int main(int argc, char** argv) {"playstate", no_argument, &cmd, CMD_GETPLAYSTATE}, {"random", optional_argument, &cmd, CMD_RANDOM }, {"chase", optional_argument, &cmd, CMD_CHASE }, + {"running", optional_argument, &cmd, CMD_CHASE }, {"version", no_argument, &cmd, CMD_VERSION }, {"fwversion", no_argument, &cmd, CMD_FWVERSION }, //{"serialnumread", no_argument, &cmd, CMD_SERIALNUMREAD }, @@ -441,9 +443,11 @@ int main(int argc, char** argv) deviceIds[numDevicesToUse++] = strtol(pch,NULL,base); pch = strtok(NULL, " ,"); } - for( int i=0; i