summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index b6a7c89308..0ec89b7140 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -162,9 +162,9 @@ bool update_onvol_change(struct gui_wps * gwps)
162void play_hop(int direction) 162void play_hop(int direction)
163{ 163{
164 if(!wps_state.id3 || !wps_state.id3->length 164 if(!wps_state.id3 || !wps_state.id3->length
165 || global_settings.study_hop_step == 0) 165 || global_settings.skip_length == 0)
166 return; 166 return;
167#define STEP ((unsigned)global_settings.study_hop_step *1000) 167#define STEP ((unsigned)global_settings.skip_length*60*1000)
168 if(direction == 1 168 if(direction == 1
169 && wps_state.id3->length - wps_state.id3->elapsed < STEP+1000) { 169 && wps_state.id3->length - wps_state.id3->elapsed < STEP+1000) {
170#if CONFIG_CODEC == SWCODEC 170#if CONFIG_CODEC == SWCODEC