Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: [HELP] Button bouncing problem on iaudioX5

Re: [HELP] Button bouncing problem on iaudioX5

From: Nicolas GIF (Salokyn) <"Nicolas>
Date: Sat, 22 Sep 2007 12:00:24 +0300

David Bleakley a écrit :
>
>>>I began to write a patch for button-x5.c file to filter the button
>>>status (http://www.rockbox.org/tracker/task/6787) but things are not
>>>that easy.
>
> I am one of these people. I tried the patch and it did improve the
> stability.
>
> I tried to improve it with various filters, but came to the conclusion
> that I needed to see the raw data and then run various filters in excel
> to compare properly.
>
> I had the button-x5.c (attached) write the 1st 100 key presses after
> pressing select. I got some data out, but then I damaged my harddrive
> and am waiting to repair it.
> Cheers
>
> David

I can't understand why you have to add (cursor == 0) in the following
lines to avoid Rockbox hanging !


if (data >= 0xf0 && cursor == 0) //Reset FILTER as no button was pressed
{
        for (i = 0; i < tab_size; i++)
                 tab[i] = 0xff;
        data_last_valid = 0xff;
}
Received on 2007-09-22

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy