dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Classic holdswitch polling

Re: Classic holdswitch polling

From: Michael Sevakis <>
Date: Sat, 10 Mar 2012 16:50:29 -0500

> No need to look at the actual mutex, just have a volatile bool
> i2c_in_use that you set to true after locking the mutex and to false
> before releasing it. Then skip the hold switch reading part of the tick
> task if that flag is set to true.

Just giving fair warning. :-) If there's no need for actually checking the
mutex status in this case then use whatever works.

Received on 2012-03-10

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