Quote:
Originally Posted by jharker
Why are you only reading the button status once?
Okay, for the record, here is the thread about all things button-related. Someone should really sticky that thread, I keep referring people to it.
The short answer is, every time the button status is checked, the buffer is then reset to "ff". The ContentLister checks button status 10 times per second. So if your program runs its one single button check just after the ContentLister, it's possible that it won't see it.
It also depends on how you're pressing the button. Are you holding it down? For how long? At what point during boot do you start pressing it? When does your program run (i.e. what does your start.sh script look like)?
|
Thanks for the link. My program certainly looks like yours... I looked up the defines in the freshly released code. The program works fine when called in ssh...
I poll before contenLister is even started (at the start of /home/root/start.sh) I want to use it do decide between the normal start-up (powrMgr, contenLister, etc), and my experimental stuff. When I make a mistake, I can always boot the normal way (just don't press the magic button). I could also start sshd by pressing 'BOOKS' while booting
I've tried polling 10 times with a small interval, but I get FF ten times...
I hold the button at power-on, and only let it go when contentLister is showing...
Aparently I miss something, or something is still disabled when I poll...
Did you try to call your poll program in start.sh?