From fe9e42ddb421f7e1ee89764dca083c01099292c6 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Wed, 11 Oct 2017 03:23:05 +0200 Subject: [PATCH] Allow disabling the brightness slider on compilation make DISABLE_SLIDER=1 --- source/common/hid.c | 2 ++ source/godmode.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/common/hid.c b/source/common/hid.c index af67123..02af949 100644 --- a/source/common/hid.c +++ b/source/common/hid.c @@ -24,7 +24,9 @@ u32 InputWait(u32 timeout_sec) { return sd_state ? SD_INSERT : SD_EJECT; u8 special_key; if ((timer_msec(timer_mcu) >= 64) && (I2C_readRegBuf(I2C_DEV_MCU, 0x10, &special_key, 1))) { + #ifndef DISABLE_SLIDER CheckBrightness(); + #endif if (special_key == 0x01) return pad_state | BUTTON_POWER; else if (special_key == 0x04) diff --git a/source/godmode.c b/source/godmode.c index 5a77127..df68842 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -1106,7 +1106,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan ShowPrompt(false, "Mounting image: failed"); InitImgFS(NULL); } else { // open in next pane? - if (ShowPrompt(true, "%s\nMounted as drive %s\Enter path now?", pathstr, drv_path)) { + if (ShowPrompt(true, "%s\nMounted as drive %s\nEnter path now?", pathstr, drv_path)) { if (N_PANES) { memcpy((*pane)->path, current_path, 256); // store current pane state (*pane)->cursor = *cursor;