Merge remote-tracking branch 'origin/Neulive20_MergeWith13' into Neulive20_MergeWith13

This commit is contained in:
yichin
2020-02-18 14:10:19 +08:00
@@ -371,7 +371,7 @@ static uint8_t headstage_debug_instruction(uint8_t* ins_buf) {
static uint8_t get_sti_channel(uint8_t sti_channel) {
uint8_t sti_ch;
for (uint8_t i = 0; i <NEU_STI_CHANNEL_COUNTS ; i++) {
for (uint8_t i = 0; i < NEU_STI_CHANNEL_COUNTS-1 ; i++) {
if ((0x0001 << i) & sti_channel) {
sti_ch = i;
return sti_ch;
@@ -1159,7 +1159,7 @@ static void headstage_neu_state_spi() {
NEULIVE_STATE.state = NEU_PREPARE_READ;
FlushSPICounter ++;
AppendSPITX(0, 0);
headstage_spi_transaction(SPI_BUFFER_SIZE);
// headstage_spi_transaction(SPI_BUFFER_SIZE);
}
else{
SPICallBack = READ_MOSI;