forked from Mirror/GodMode9
Allow disabling the brightness slider on compilation
make DISABLE_SLIDER=1
This commit is contained in:
parent
69423b22ed
commit
fe9e42ddb4
@ -24,7 +24,9 @@ u32 InputWait(u32 timeout_sec) {
|
|||||||
return sd_state ? SD_INSERT : SD_EJECT;
|
return sd_state ? SD_INSERT : SD_EJECT;
|
||||||
u8 special_key;
|
u8 special_key;
|
||||||
if ((timer_msec(timer_mcu) >= 64) && (I2C_readRegBuf(I2C_DEV_MCU, 0x10, &special_key, 1))) {
|
if ((timer_msec(timer_mcu) >= 64) && (I2C_readRegBuf(I2C_DEV_MCU, 0x10, &special_key, 1))) {
|
||||||
|
#ifndef DISABLE_SLIDER
|
||||||
CheckBrightness();
|
CheckBrightness();
|
||||||
|
#endif
|
||||||
if (special_key == 0x01)
|
if (special_key == 0x01)
|
||||||
return pad_state | BUTTON_POWER;
|
return pad_state | BUTTON_POWER;
|
||||||
else if (special_key == 0x04)
|
else if (special_key == 0x04)
|
||||||
|
@ -1106,7 +1106,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
|||||||
ShowPrompt(false, "Mounting image: failed");
|
ShowPrompt(false, "Mounting image: failed");
|
||||||
InitImgFS(NULL);
|
InitImgFS(NULL);
|
||||||
} else { // open in next pane?
|
} 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) {
|
if (N_PANES) {
|
||||||
memcpy((*pane)->path, current_path, 256); // store current pane state
|
memcpy((*pane)->path, current_path, 256); // store current pane state
|
||||||
(*pane)->cursor = *cursor;
|
(*pane)->cursor = *cursor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user