random cleanup
This commit is contained in:
parent
130a1e0e9d
commit
f9e7362237
2 changed files with 3 additions and 5 deletions
|
|
@ -29,10 +29,8 @@ static struct input_event ev;
|
||||||
static int jack_fd;
|
static int jack_fd;
|
||||||
static pthread_t jack_pt;
|
static pthread_t jack_pt;
|
||||||
|
|
||||||
// TODO: HDMI?
|
|
||||||
|
|
||||||
#define JACK_STATE_PATH "/sys/class/switch/h2w/state"
|
#define JACK_STATE_PATH "/sys/class/switch/h2w/state"
|
||||||
#define HDMI_STATE_PATH "/sys/class/switch/hdmi/state"
|
#define HDMI_STATE_PATH "/sys/class/switch/hdmi/state" // TODO:
|
||||||
|
|
||||||
static void* watchJack(void *arg) {
|
static void* watchJack(void *arg) {
|
||||||
uint32_t has_headphones;
|
uint32_t has_headphones;
|
||||||
|
|
|
||||||
|
|
@ -1416,8 +1416,8 @@ int main (int argc, char *argv[]) {
|
||||||
int old_setting = show_setting;
|
int old_setting = show_setting;
|
||||||
int old_value = setting_value;
|
int old_value = setting_value;
|
||||||
|
|
||||||
#define BRIGHTNESS_DELAY 500
|
#define SETTING_DELAY 500
|
||||||
if (show_setting && now-setting_start>=BRIGHTNESS_DELAY && !PAD_isPressed(BTN_MENU)) {
|
if (show_setting && now-setting_start>=SETTING_DELAY && !PAD_isPressed(BTN_MENU)) {
|
||||||
show_setting = 0;
|
show_setting = 0;
|
||||||
dirty = 1;
|
dirty = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue