diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-02 19:45:20 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-18 12:56:28 +0100 |
commit | e03bc66594af9b412a6b0eb6e792518759133181 (patch) | |
tree | 3acffa8edaf873aa8e3d1bd82b7ec24700215296 | |
parent | 46c3d1e030846da7d8265973853b08e02982434c (diff) | |
download | rockbox-e03bc66594.tar.gz rockbox-e03bc66594.zip |
Correct typo DEFAULT_SKIP_TRESH -> DEFAULT_SKIP_THRESH
Change-Id: If8f7d11301a07a7f63adfac618f07cfed9516eef
-rw-r--r-- | apps/cuesheet.c | 6 | ||||
-rw-r--r-- | apps/gui/wps.c | 10 | ||||
-rw-r--r-- | apps/gui/wps.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 236d250c69..7823e599e5 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -565,12 +565,12 @@ bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_ if (!(direction <= 0 && track == 0)) { /* If skipping forward, skip to next cuesheet segment. If skipping - backward before DEFAULT_SKIP_TRESH milliseconds have elapsed, skip + backward before DEFAULT_SKIP_THRESH milliseconds have elapsed, skip to previous cuesheet segment. If skipping backward after - DEFAULT_SKIP_TRESH seconds have elapsed, skip to the start of the + DEFAULT_SKIP_THRESH seconds have elapsed, skip to the start of the current cuesheet segment */ if (direction == 1 || - ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_TRESH)) + ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_THRESH)) { track += direction; } diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 1c1422967d..837621fb44 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -443,26 +443,26 @@ static void play_hop(int direction) { if (direction < 0) { - prev_track(DEFAULT_SKIP_TRESH); + prev_track(DEFAULT_SKIP_THRESH); return; } - else if (remaining < DEFAULT_SKIP_TRESH*2) + else if (remaining < DEFAULT_SKIP_THRESH*2) { next_track(); return; } else - elapsed += (remaining - DEFAULT_SKIP_TRESH*2); + elapsed += (remaining - DEFAULT_SKIP_THRESH*2); } else if (!global_settings.prevent_skip && (!step || (direction > 0 && step >= remaining) || - (direction < 0 && elapsed < DEFAULT_SKIP_TRESH))) + (direction < 0 && elapsed < DEFAULT_SKIP_THRESH))) { /* Do normal track skipping */ if (direction > 0) next_track(); else if (direction < 0) - prev_track(DEFAULT_SKIP_TRESH); + prev_track(DEFAULT_SKIP_THRESH); return; } else if (direction == 1 && step >= remaining) diff --git a/apps/gui/wps.h b/apps/gui/wps.h index a2893a3902..88f0ef7c34 100644 --- a/apps/gui/wps.h +++ b/apps/gui/wps.h @@ -36,6 +36,6 @@ bool is_wps_fading(void); #endif /* IPOD_ACCESSORY_PROTOCOL */ /* in milliseconds */ -#define DEFAULT_SKIP_TRESH 3000l +#define DEFAULT_SKIP_THRESH 3000l #endif /* _WPS_H_ */ |