|
|
@ -47,7 +47,7 @@ bluetooth_processer_t s_bluetooth_processer = { |
|
|
|
.table_handle_m = 0, |
|
|
|
|
|
|
|
.cmd_flag = false, |
|
|
|
.actively_report_flag = false, |
|
|
|
.auto_report_flag = false, |
|
|
|
}; |
|
|
|
|
|
|
|
void app_main(void) { |
|
|
@ -61,9 +61,9 @@ void app_main(void) { |
|
|
|
bluetooth_rx_buffer_send_indicate(); |
|
|
|
} |
|
|
|
bluetooth_gatts_try_process_data(); |
|
|
|
if (s_bluetooth_processer.actively_report_flag) { |
|
|
|
if (s_bluetooth_processer.auto_report_flag) { |
|
|
|
receipt_json_get_status(); |
|
|
|
s_bluetooth_processer.actively_report_flag = false; |
|
|
|
s_bluetooth_processer.auto_report_flag = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|