|
@@ -28,8 +28,6 @@ static pthread_t s_button_threadID;
|
|
|
return ;
|
|
|
}
|
|
|
|
|
|
-int duer_app_is_test_mode(void);
|
|
|
-
|
|
|
extern int duer_recorder_test_start(int channel);
|
|
|
|
|
|
static void button_polling_thread()
|
|
@@ -44,28 +42,8 @@ static void button_polling_thread()
|
|
|
DUER_LOGI("button_polling_thread %d\n", digitalRead(BUTTON_GPIO));
|
|
|
delay(100);
|
|
|
if(digitalRead(BUTTON_GPIO)==0)
|
|
|
- {
|
|
|
- if(duer_app_is_test_mode())
|
|
|
- {
|
|
|
- duer_recorder_test_start(channel_id);
|
|
|
- duer_dcs_dialog_cancel();
|
|
|
- duer_media_tone_play("./resources/16.wav");
|
|
|
- event_record_start();
|
|
|
- if(channel_id==1)
|
|
|
- {
|
|
|
- channel_id =2;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- channel_id =1;
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- duer_dcs_dialog_cancel();
|
|
|
- duer_media_tone_play("./resources/16.wav");
|
|
|
+ { duer_dcs_dialog_cancel(); duer_media_tone_play("./resources/16.wav");
|
|
|
event_record_start();
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
}
|