rupello / nxt-python-for-android

This is a fork exported from code.google.com/p/nxt-python to work on support for Kivy on Android
GNU General Public License v3.0
0 stars 0 forks source link

[Feature Request] Disable output from brick connect #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the new feature more precisely.

Add a parameter to find_one_brick and find_bricks to disable preliminary error 
output. (Such as USB not available) Of course, keep the catchall that throws an 
official error. Another option would be to have a global nxt module variable 
that specifies if output is requested.

Why do you think it's important?
It would allow automated programs to look more professional and output their 
own error codes.

Any ideas on how to implement it?
Just add a parameter output=True to the functions, and have find_one_brick pass 
to find_bricks. All outputs would then be wrapped with an if block.

Please provide any additional information below.
This is a quick and low priority change that does not change the overall 
function of the program at all.

Original issue reported on code.google.com by Zonedab...@gmail.com on 11 Nov 2010 at 2:58

GoogleCodeExporter commented 9 years ago
Good idea; I will be looking at this and probably set it so that it only prints 
it if a "debug" option is passed (and perhaps add more messages as well).

Original comment by marcus@wanners.net on 11 Nov 2010 at 3:06

GoogleCodeExporter commented 9 years ago
Fixed in r269. Please verify that this is the behavior you were requesting.

Original comment by marcus@wanners.net on 3 Jan 2011 at 7:31