<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/libk8055/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/libk8055/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 14 Jan 2012 14:49:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libk8055/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>mistake in udev rules</title><link>https://sourceforge.net/p/libk8055/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;There appears to be a mistake in the udev rules with version 0.4.1, causing them to match ALL devices.  Since the unnumbered velleman.rules rule will be read last, this results in all the devices in /dev being set to MODE="0660" and GROUP="k8055" including /dev/null and similar. This is most inconvenient !&lt;/p&gt;
&lt;p&gt;(The same error was present ion 0.4.0, but the result was setting all devices on the system to MODE="0666" and GROUP="root" which not noticeable in everyday usage but was a security concern)&lt;/p&gt;
&lt;p&gt;The line&lt;/p&gt;
&lt;p&gt;SUBSYSTEM !="usb_device", ACTION !="add", GOTO="velleman_rules_end"&lt;/p&gt;
&lt;p&gt;requires BOTH conditions to be true in order to execute the GOTO, not either.&lt;/p&gt;
&lt;p&gt;Splitting into the separate lines:&lt;/p&gt;
&lt;p&gt;SUBSYSTEM !="usb_device", GOTO="velleman_rules_end"&lt;br /&gt;
ACTION!="add", GOTO="velleman_rules_end"&lt;br /&gt;
# Probably redundant? :&lt;br /&gt;
ENV{DEVTYPE}!="usb_device", GOTO="velleman_rules_end"&lt;/p&gt;
&lt;p&gt;fixes this.&lt;/p&gt;
&lt;p&gt;Additionally, the unconditional line&lt;/p&gt;
&lt;p&gt;MODE="0660", GROUP="k8055"&lt;/p&gt;
&lt;p&gt;will surely execute for EVERY device NOT caught by the GOTO conditional even with the above correction (probably every USB device plugged in? I didn't check this)&lt;/p&gt;
&lt;p&gt;They should be appended to each line matching the idVendor and idProduct keys e.g:&lt;/p&gt;
&lt;p&gt;SYSFS{idVendor}=="10cf", SYSFS{idProduct}=="5500", SYMLINK+="k8055_0", MODE="0660", GROUP="k8055"&lt;br /&gt;
SYSFS{idVendor}=="10cf", SYSFS{idProduct}=="5501", SYMLINK+="k8055_1", MODE="0660", GROUP="k8055"&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;I'm afraid I don 't know how to submit a proper patch but a corrected version of velleman.rules is attached&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Lee</dc:creator><pubDate>Sat, 14 Jan 2012 14:49:46 -0000</pubDate><guid>https://sourceforge.net1ce1780cc2b4dda309d2e60c9c1373a1d28a9a34</guid></item><item><title>Typo in Makefile</title><link>https://sourceforge.net/p/libk8055/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The path for PREFIX begins with a '?' character.  This causes the 'make install' process to fail to copy files to /usr/local/...'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 27 Aug 2011 19:31:20 -0000</pubDate><guid>https://sourceforge.netad1ca9f8daf16c31b617986d2c8140133cf74009</guid></item><item><title>libk8055.c does not compile with gcc 4.2.3</title><link>https://sourceforge.net/p/libk8055/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
When make-ing libk8055, I get this error message:&lt;/p&gt;
&lt;p&gt;gcc -Wall -O -c -g -fPIC libk8055.c&lt;br /&gt;
libk8055.c: In function ‘WriteK8055Data’:&lt;br /&gt;
libk8055.c:146: attention : passing argument 3 of ‘usb_interrupt_write’ from incompatible pointer type&lt;br /&gt;
Assembler messages:&lt;br /&gt;
Fatal error: can't create libk8055.o: Permission denied&lt;/p&gt;
&lt;p&gt;Here is my compiler version:&lt;br /&gt;
gcc --version&lt;br /&gt;
gcc (GCC) 4.2.3 (4.2.3-6mnb1)&lt;br /&gt;
Copyright © 2007 Free Software Foundation, Inc.&lt;/p&gt;
&lt;p&gt;The 'bad' line is:&lt;br /&gt;
write_status = usb_interrupt_write(device_handle, USB_OUT_EP, (int *)data_out, PACKET_LEN, USB_TIMEOUT);&lt;/p&gt;
&lt;p&gt;The function prototype is:&lt;br /&gt;
/usr/include/usb.h&lt;br /&gt;
int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size,&lt;br /&gt;
int timeout);&lt;/p&gt;
&lt;p&gt;Just replace the line with:&lt;br /&gt;
write_status = usb_interrupt_write(device_handle, USB_OUT_EP, (char *)data_out, PACKET_LEN, USB_TIMEOUT);&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Remi Chateauneu</dc:creator><pubDate>Sun, 21 Sep 2008 20:30:59 -0000</pubDate><guid>https://sourceforge.netb0c537646f987c38f91daab28b2b0980e2afba49</guid></item><item><title>Counter returns only 255</title><link>https://sourceforge.net/p/libk8055/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The library only returns 8-bit values for the 16-bit counter in the k8055 card.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sven Lindberg</dc:creator><pubDate>Mon, 22 Jan 2007 14:12:25 -0000</pubDate><guid>https://sourceforge.netcab635c1df62bc1891efc698461cf511b737b595</guid></item><item><title>Output commands doesn't work</title><link>https://sourceforge.net/p/libk8055/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On some systems the output can be set only once, or they can only be set by calling the set function twice if the library is used. This is caused by libusb function "usb_interrupt_write". Output length parameter must be 16-bits long while k8055 uses 8-bit (USB1.1 uses 8-bit). &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sven Lindberg</dc:creator><pubDate>Mon, 22 Jan 2007 14:08:18 -0000</pubDate><guid>https://sourceforge.net258925efab6732ca306910de83181368f6adab69</guid></item></channel></rss>