ArduControl::ArduControl(const Options &opts):
serial(opts.get<string>(string(), "ttyUSB0")),
- debug(1),
+ debug(opts.get<unsigned>("debug")),
state_file("arducontrol.state"),
power(false),
active_accessory(0),
if(!rate)
{
+ if(control.debug>=1)
+ IO::print("ArduControl detection failed\n");
done = true;
return;
}