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-e03bc66594af9b412a6b0eb6e792518759133181.tar.gz rockbox-e03bc66594af9b412a6b0eb6e792518759133181.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_ | |||
565 | if (!(direction <= 0 && track == 0)) | 565 | if (!(direction <= 0 && track == 0)) |
566 | { | 566 | { |
567 | /* If skipping forward, skip to next cuesheet segment. If skipping | 567 | /* If skipping forward, skip to next cuesheet segment. If skipping |
568 | backward before DEFAULT_SKIP_TRESH milliseconds have elapsed, skip | 568 | backward before DEFAULT_SKIP_THRESH milliseconds have elapsed, skip |
569 | to previous cuesheet segment. If skipping backward after | 569 | to previous cuesheet segment. If skipping backward after |
570 | DEFAULT_SKIP_TRESH seconds have elapsed, skip to the start of the | 570 | DEFAULT_SKIP_THRESH seconds have elapsed, skip to the start of the |
571 | current cuesheet segment */ | 571 | current cuesheet segment */ |
572 | if (direction == 1 || | 572 | if (direction == 1 || |
573 | ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_TRESH)) | 573 | ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_THRESH)) |
574 | { | 574 | { |
575 | track += direction; | 575 | track += direction; |
576 | } | 576 | } |
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) | |||
443 | { | 443 | { |
444 | if (direction < 0) | 444 | if (direction < 0) |
445 | { | 445 | { |
446 | prev_track(DEFAULT_SKIP_TRESH); | 446 | prev_track(DEFAULT_SKIP_THRESH); |
447 | return; | 447 | return; |
448 | } | 448 | } |
449 | else if (remaining < DEFAULT_SKIP_TRESH*2) | 449 | else if (remaining < DEFAULT_SKIP_THRESH*2) |
450 | { | 450 | { |
451 | next_track(); | 451 | next_track(); |
452 | return; | 452 | return; |
453 | } | 453 | } |
454 | else | 454 | else |
455 | elapsed += (remaining - DEFAULT_SKIP_TRESH*2); | 455 | elapsed += (remaining - DEFAULT_SKIP_THRESH*2); |
456 | } | 456 | } |
457 | else if (!global_settings.prevent_skip && | 457 | else if (!global_settings.prevent_skip && |
458 | (!step || | 458 | (!step || |
459 | (direction > 0 && step >= remaining) || | 459 | (direction > 0 && step >= remaining) || |
460 | (direction < 0 && elapsed < DEFAULT_SKIP_TRESH))) | 460 | (direction < 0 && elapsed < DEFAULT_SKIP_THRESH))) |
461 | { /* Do normal track skipping */ | 461 | { /* Do normal track skipping */ |
462 | if (direction > 0) | 462 | if (direction > 0) |
463 | next_track(); | 463 | next_track(); |
464 | else if (direction < 0) | 464 | else if (direction < 0) |
465 | prev_track(DEFAULT_SKIP_TRESH); | 465 | prev_track(DEFAULT_SKIP_THRESH); |
466 | return; | 466 | return; |
467 | } | 467 | } |
468 | else if (direction == 1 && step >= remaining) | 468 | 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); | |||
36 | #endif /* IPOD_ACCESSORY_PROTOCOL */ | 36 | #endif /* IPOD_ACCESSORY_PROTOCOL */ |
37 | 37 | ||
38 | /* in milliseconds */ | 38 | /* in milliseconds */ |
39 | #define DEFAULT_SKIP_TRESH 3000l | 39 | #define DEFAULT_SKIP_THRESH 3000l |
40 | 40 | ||
41 | #endif /* _WPS_H_ */ | 41 | #endif /* _WPS_H_ */ |