new LSK decoder testing
This commit is contained in:
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user