From: Mikko Rasa Date: Mon, 31 Mar 2014 19:34:00 +0000 (+0300) Subject: ArduControl debugging tweaks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=437ad8b3b19d2ba396551efa66723366364b1ad3;p=r2c2.git ArduControl debugging tweaks --- diff --git a/source/libr2c2/arducontrol.cpp b/source/libr2c2/arducontrol.cpp index ecac7b8..6d74f37 100644 --- a/source/libr2c2/arducontrol.cpp +++ b/source/libr2c2/arducontrol.cpp @@ -20,7 +20,7 @@ ArduControl::ProtocolInfo ArduControl::protocol_info[2] = ArduControl::ArduControl(const Options &opts): serial(opts.get(string(), "ttyUSB0")), - debug(1), + debug(opts.get("debug")), state_file("arducontrol.state"), power(false), active_accessory(0), @@ -967,6 +967,8 @@ void ArduControl::ControlThread::init_baud_rate() if(!rate) { + if(control.debug>=1) + IO::print("ArduControl detection failed\n"); done = true; return; }