1
0
Fork 0
forked from len0rd/rockbox

radio.c presets.c small clean-up

remove some extern vars in favor of get/set functions

Change-Id: Ic4effae2acdd480beeab76c9f0319b1783a3bab3
This commit is contained in:
William Wilgus 2024-11-30 15:24:47 -05:00
parent fdc17096b5
commit 80a0bf590f
7 changed files with 65 additions and 42 deletions

View file

@ -109,7 +109,7 @@ int radio_get_art_hid(struct dim *requested_dim)
int free_idx = -1;
const char* preset_name;
if (!buf || radio_scan_mode() || preset < 0)
if (!buf || (radio_get_mode() == RADIO_SCAN_MODE) || preset < 0)
return -1;
preset_name = radio_get_preset_name(preset);