Fix an ugly bug in a call to set_reset_method.

This commit is contained in:
David Betz 2015-02-08 20:39:53 -05:00
parent b090d89c70
commit 7596a4165b

View File

@ -121,7 +121,11 @@ int main(int argc, char *argv[])
state.rx_timeout = cb_rx_timeout;
state.progress = cb_progress;
#ifdef RASPBERRY_PI
use_reset_method("gpio,17,0");
{
char cmd[20] = "gpio,17,0";
// use_reset_method uses strtok to parse the string so it can't be a constant
use_reset_method(cmd);
}
#endif
/* process the position-independent arguments */