Always enable volume control.

This commit is contained in:
sorgelig
2020-03-17 01:27:27 +08:00
parent 5b60007414
commit 5a4df1c8a8
5 changed files with 1 additions and 7 deletions

View File

@@ -728,7 +728,6 @@ void user_io_init(const char *path, const char *xml)
if(strlen(cfg.font)) LoadFont(cfg.font);
FileLoadConfig("Volume.dat", &vol_att, 1);
vol_att &= 0x1F;
if (!cfg.volumectl) vol_att = 0;
spi_uio_cmd8(UIO_AUDVOL, vol_att);
user_io_send_buttons(1);
@@ -3066,8 +3065,6 @@ int get_volume()
void set_volume(int cmd)
{
if (!cfg.volumectl) return;
vol_set_timeout = GetTimer(1000);
vol_att &= 0x17;