Redraw OSD if mask has been changed.

This commit is contained in:
sorgelig
2020-12-08 13:21:32 +08:00
parent 093a265599
commit 74b3528150
3 changed files with 17 additions and 12 deletions

View File

@@ -1526,9 +1526,7 @@ void HandleUI(void)
/******************************************************************/
case MENU_GENERIC_MAIN1: {
spi_uio_cmd_cont(UIO_GET_OSDMASK);
hdmask = spi_w(0);
DisableIO();
hdmask = spi_uio_cmd16(UIO_GET_OSDMASK, 0);
user_io_read_confstr();
uint32_t s_entry = 0;
int entry = 0;
@@ -2121,6 +2119,11 @@ void HandleUI(void)
menusub = 3;
}
}
else if(spi_uio_cmd16(UIO_GET_OSDMASK, 0) != hdmask)
{
menustate = MENU_GENERIC_MAIN1;
}
break;
case MENU_GENERIC_FILE_SELECTED: