mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Implement FS#8947 - Add a stub in the simulator for ata_disk_is_active. This make it possible to clean up some #ifdef SIMULATOR macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17927 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6fd40a57b8
commit
f4d4a6ab60
6 changed files with 11 additions and 11 deletions
|
|
@ -1335,7 +1335,7 @@ int peak_meter_draw_get_btn(int action_context, int x, int y[],
|
|||
long next_refresh = current_tick;
|
||||
long next_big_refresh = current_tick + HZ / 10;
|
||||
int i;
|
||||
#if (CONFIG_CODEC == SWCODEC) || defined(SIMULATOR)
|
||||
#if (CONFIG_CODEC == SWCODEC)
|
||||
bool highperf = false;
|
||||
#else
|
||||
/* On MAS targets, we need to poll as often as possible in order to not
|
||||
|
|
|
|||
|
|
@ -292,11 +292,7 @@ static bool read_peak_levels(int *peak_l, int *peak_r, int *balance)
|
|||
peak_valid_mem[peak_time % 3] = *peak_l;
|
||||
if (((peak_valid_mem[0] == peak_valid_mem[1]) &&
|
||||
(peak_valid_mem[1] == peak_valid_mem[2])) &&
|
||||
((*peak_l < 32767)
|
||||
#ifndef SIMULATOR
|
||||
|| ata_disk_is_active()
|
||||
#endif
|
||||
))
|
||||
((*peak_l < 32767) || ata_disk_is_active()))
|
||||
return false;
|
||||
|
||||
if (*peak_r > *peak_l)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue