From: Hans de G. <hde...@re...> - 2013-09-22 09:37:39
|
Hi, On 09/22/2013 10:14 AM, Igor Furlan wrote: > Hi > > Recently I've ordered (and received) two USB based I2C/SPI interfaces > from NANO River Technology http://nanorivertech.com/viperboard.html. > This board is very useful for the LAB work during the evaluation and > debugging of the, so called, 'first silicon'. > > Based on the sample code for Linux from NANO River, I've wrote a small > CLI utility to talk to our DUTs from the terminal prompt. > > Everything works fine. Users are happy. There is just one thing they > do not like. They are getting on their screen the following message: > > [~/I2C]$ i2c 2B AA BB -b 100kbit -U VIPER > libusbx: warning [libusb_exit] application left some devices open > > Yes, I've installed the latest version of the libusbx package. We are > running it on CentOS 6.4. > > Is there a trick (or workaround) to suppress the message ? Not really a trick or a workaround, you just need to make sure that your application properly closes any devices it has opened before exiting. Regards, Hans |