diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_uni.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_uni.h index 1e35cf4f7..ed2e4afc2 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_uni.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage_uni.h @@ -953,6 +953,7 @@ static void headstage_uni_umc_data_append_notify_buffer(uint8_t* dat_buf) { // headstage_uni_delay(); // } else + if(!StartSync){ if(SingleCh){ if((dat_buf[1] & 0b01111000) == 0b00101000){ @@ -968,7 +969,6 @@ static void headstage_uni_umc_data_append_notify_buffer(uint8_t* dat_buf) { } if(StartSync){ - headstage_led_spi_color(COLOR_RED); headstage_led_spi_color(COLOR_CYAN); // check header, which is also a sync for single channel dat_buf[0] = (dat_buf[0] << 1) | ((dat_buf[1] >> 7) & 0x01); @@ -987,6 +987,7 @@ static void headstage_uni_umc_data_append_notify_buffer(uint8_t* dat_buf) { // SimpleProfile_SetParameter(BLE_NOT_BUFF_CHAR, BLE_NOT_BUFF_SIZE, headstage_notify_buffer); uint8_t data_size = headstage_notify_append_data(channel, dat_buf); if (data_size >= BLE_NOT_BUFF_SIZE) { + headstage_led_spi_color(COLOR_RED); headstage_notify_flip_buffer(); headstage_notify_send(); }