test notify

This commit is contained in:
weiting2
2020-02-13 10:45:00 +08:00
parent f9412ed0ea
commit 3c0cf37074
@@ -523,8 +523,12 @@ static void headstage_neu_append_notify_data() {
// not_buf[2] = (INSTRUCTION.recording_channel | 0x00FF);
uint8_t data_size = headstage_notify_append_data(not_buf);
cdr_buf[0] = data_size;
SimpleProfile_SetParameter(BLE_CDR_BUFF_CHAR, 1, cdr_buf);
if (data_size >= BLE_NOT_BUFF_SIZE) {
headstage_led_color(COLOR_RED);
headstage_led_color(COLOR_YELLOW);
headstage_notify_flip_buffer();
headstage_notify_send();
}