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:
parent
fdc17096b5
commit
80a0bf590f
7 changed files with 65 additions and 42 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue