diff options
-rw-r--r-- | apps/playlist.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index f1bcfaa6e9..5d7ef2fd6c 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | #include <malloc.h> | 21 | #include <malloc.h> |
22 | #include <time.h> | 22 | |
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include "playlist.h" | 25 | #include "playlist.h" |
@@ -135,11 +135,7 @@ void add_indices_to_playlist( playlist_info_t *playlist ) | |||
135 | int i = 0; | 135 | int i = 0; |
136 | int store_index = 0; | 136 | int store_index = 0; |
137 | int count = 0; | 137 | int count = 0; |
138 | #ifdef SIMULATOR | ||
139 | int next_tick = time(NULL); | ||
140 | #else | ||
141 | int next_tick = current_tick + HZ; | 138 | int next_tick = current_tick + HZ; |
142 | #endif | ||
143 | 139 | ||
144 | unsigned char *p; | 140 | unsigned char *p; |
145 | unsigned char buf[512]; | 141 | unsigned char buf[512]; |
@@ -181,13 +177,8 @@ void add_indices_to_playlist( playlist_info_t *playlist ) | |||
181 | } | 177 | } |
182 | 178 | ||
183 | store_index = 0; | 179 | store_index = 0; |
184 | #ifdef SIMULATOR | ||
185 | if ( time(NULL) >= next_tick ) { | ||
186 | next_tick = time(NULL) + 1; | ||
187 | #else | ||
188 | if ( current_tick >= next_tick ) { | 180 | if ( current_tick >= next_tick ) { |
189 | next_tick = current_tick + HZ; | 181 | next_tick = current_tick + HZ; |
190 | #endif | ||
191 | snprintf(line, sizeof line, "%d files", playlist->amount); | 182 | snprintf(line, sizeof line, "%d files", playlist->amount); |
192 | lcd_puts(0,1,line); | 183 | lcd_puts(0,1,line); |
193 | lcd_update(); | 184 | lcd_update(); |