<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/libk8055/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/libk8055/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/libk8055/bugs/</id><updated>2012-01-14T14:49:46Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>mistake in udev rules</title><link href="https://sourceforge.net/p/libk8055/bugs/5/" rel="alternate"/><published>2012-01-14T14:49:46Z</published><updated>2012-01-14T14:49:46Z</updated><author><name>Alex Lee</name><uri>https://sourceforge.net/u/alex-l33/</uri></author><id>https://sourceforge.net1ce1780cc2b4dda309d2e60c9c1373a1d28a9a34</id><summary type="html">&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;</summary></entry><entry><title>Typo in Makefile</title><link href="https://sourceforge.net/p/libk8055/bugs/4/" rel="alternate"/><published>2011-08-27T19:31:20Z</published><updated>2011-08-27T19:31:20Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netad1ca9f8daf16c31b617986d2c8140133cf74009</id><summary type="html">&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;</summary></entry><entry><title>libk8055.c does not compile with gcc 4.2.3</title><link href="https://sourceforge.net/p/libk8055/bugs/3/" rel="alternate"/><published>2008-09-21T20:30:59Z</published><updated>2008-09-21T20:30:59Z</updated><author><name>Remi Chateauneu</name><uri>https://sourceforge.net/u/f4ecw/</uri></author><id>https://sourceforge.netb0c537646f987c38f91daab28b2b0980e2afba49</id><summary type="html">&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;</summary></entry><entry><title>Counter returns only 255</title><link href="https://sourceforge.net/p/libk8055/bugs/2/" rel="alternate"/><published>2007-01-22T14:12:25Z</published><updated>2007-01-22T14:12:25Z</updated><author><name>Sven Lindberg</name><uri>https://sourceforge.net/u/userid-557237/</uri></author><id>https://sourceforge.netcab635c1df62bc1891efc698461cf511b737b595</id><summary type="html">&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;</summary></entry><entry><title>Output commands doesn't work</title><link href="https://sourceforge.net/p/libk8055/bugs/1/" rel="alternate"/><published>2007-01-22T14:08:18Z</published><updated>2007-01-22T14:08:18Z</updated><author><name>Sven Lindberg</name><uri>https://sourceforge.net/u/userid-557237/</uri></author><id>https://sourceforge.net258925efab6732ca306910de83181368f6adab69</id><summary type="html">&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;</summary></entry></feed>