|
|
@ -106,6 +106,7 @@ static sample_data_filename_t* cratefilename() { |
|
|
|
sampledata_file_name.hour = tm.tm_hour; |
|
|
|
sampledata_file_name.min = tm.tm_min; |
|
|
|
sampledata_file_name.sec = tm.tm_sec; |
|
|
|
return &sampledata_file_name; |
|
|
|
} |
|
|
|
|
|
|
|
static void prvf_change_to_standby_state() { poweroff(); } |
|
|
@ -164,6 +165,12 @@ static void app_event_listener(void* p_event_data, uint16_t event_size) { // |
|
|
|
prvf_change_to_sample_state(); |
|
|
|
// 开始采集 |
|
|
|
hwss_start_capture(); |
|
|
|
|
|
|
|
{ |
|
|
|
static app_event_t event; |
|
|
|
event.eventType = kevent_sample_start_event; |
|
|
|
AppEvent_pushEvent(&event); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// |
|
|
@ -199,6 +206,12 @@ static void app_event_listener(void* p_event_data, uint16_t event_size) { // |
|
|
|
hwss_stop_capture(); |
|
|
|
// 切换到待机状态 |
|
|
|
prvf_change_to_ready_state(); |
|
|
|
|
|
|
|
{ |
|
|
|
static app_event_t event; |
|
|
|
event.eventType = kevent_sample_stop_event; |
|
|
|
AppEvent_pushEvent(&event); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|