Allow disabling the brightness slider on compilation

make DISABLE_SLIDER=1
This commit is contained in:
d0k3 2017-10-11 03:23:05 +02:00
parent 69423b22ed
commit fe9e42ddb4
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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;