From: svnhieber Date: Wed, 1 Dec 2010 21:09:18 +0000 (+0000) Subject: reserve stdout for log output X-Git-Url: https://git.rohieb.name/bachelor-thesis/roomba_tests.git/commitdiff_plain/40eff121b84df119c211a47962e05302c1ea11f7 reserve stdout for log output git-svn-id: https://svn.itm.uni-luebeck.de/wisebed/wiselib/trunk/pc_apps/roomba_tests@3663 f8795833-4959-0410-8ae9-8bcb0cfab428 --- diff --git a/battery_test.cc b/battery_test.cc index f5fb28f..5ee5807 100644 --- a/battery_test.cc +++ b/battery_test.cc @@ -86,7 +86,7 @@ int main(int argc, char ** argv) { roomba_uart.enable_serial_comm(); roomba.init(roomba_uart, timer, Roomba::BATTERY_AND_TEMPERATURE); - cout << "Got roomba at " << roomba_uart.address() << endl; + cerr << "Got roomba at " << roomba_uart.address() << endl; roomba.reset_distance(); roomba.reset_angle(); diff --git a/main.cc b/main.cc index 2bff299..ffe54bb 100644 --- a/main.cc +++ b/main.cc @@ -228,7 +228,7 @@ int main(int argc, char ** argv) { roomba.init(roomba_uart, timer, Roomba::POSITION | Roomba::BATTERY_AND_TEMPERATURE); - cout << "Got roomba at " << roomba_uart.address() << endl; + cerr << "Got roomba at " << roomba_uart.address() << endl; roomba.reset_distance(); roomba.reset_angle();