Skip to content

Commit 0f84f20

Browse files
committed
Power off top screen backlight during FTP
1 parent 75686fe commit 0f84f20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/menus/menu_ftp.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ void Menu_DisplayFTP(void)
2929

3030
ret = gethostname(hostname, sizeof(hostname));
3131

32+
if (R_SUCCEEDED(gspLcdInit()))
33+
{
34+
GSPLCD_PowerOffBacklight(GSPLCD_SCREEN_TOP);
35+
gspLcdExit();
36+
}
37+
3238
while(MENU_STATE == MENU_STATE_FTP)
3339
{
3440
ftp_loop();
@@ -91,6 +97,13 @@ void Menu_DisplayFTP(void)
9197
memset(ftp_accepted_connection, 0, 20); // Empty accepted connection address
9298
memset(ftp_file_transfer, 0, 50); // Empty transfer status
9399
ftp_exit();
100+
101+
if (R_SUCCEEDED(gspLcdInit()))
102+
{
103+
GSPLCD_PowerOnBacklight(GSPLCD_SCREEN_TOP);
104+
gspLcdExit();
105+
}
106+
94107
MENU_STATE = MENU_STATE_HOME;
95108
Dirbrowse_PopulateFiles(true);
96109
}

0 commit comments

Comments
 (0)