summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/abrepeat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/abrepeat.c b/apps/abrepeat.c
index 5fbd880a17..f6ca3096cb 100644
--- a/apps/abrepeat.c
+++ b/apps/abrepeat.c
@@ -24,12 +24,14 @@
24 24
25#ifdef AB_REPEAT_ENABLE 25#ifdef AB_REPEAT_ENABLE
26 26
27unsigned int test = 1;
27unsigned int ab_A_marker IDATA_ATTR = AB_MARKER_NONE; 28unsigned int ab_A_marker IDATA_ATTR = AB_MARKER_NONE;
28unsigned int ab_B_marker IDATA_ATTR = AB_MARKER_NONE; 29unsigned int ab_B_marker IDATA_ATTR = AB_MARKER_NONE;
29 30bool foo = false;
30#if (CONFIG_CODEC == SWCODEC) 31#if (CONFIG_CODEC == SWCODEC)
31void ab_end_of_track_report(void) 32void ab_end_of_track_report(void)
32{ 33{
34 test = 2;
33 if ( ab_A_marker_set() && ! ab_B_marker_set() ) 35 if ( ab_A_marker_set() && ! ab_B_marker_set() )
34 { 36 {
35 ab_jump_to_A_marker(); 37 ab_jump_to_A_marker();
@@ -38,6 +40,7 @@ void ab_end_of_track_report(void)
38#else 40#else
39static int ab_audio_event_handler(unsigned short event, unsigned long data) 41static int ab_audio_event_handler(unsigned short event, unsigned long data)
40{ 42{
43 foo = true;
41 int rc = AUDIO_EVENT_RC_IGNORED; 44 int rc = AUDIO_EVENT_RC_IGNORED;
42 if ( ab_repeat_mode_enabled() ) 45 if ( ab_repeat_mode_enabled() )
43 { 46 {