File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -1778,20 +1778,10 @@ bool CurieIMUClass::stepsDetected()
1778
1778
int CurieIMUClass::serial_buffer_transfer (uint8_t *buf, unsigned tx_cnt,
1779
1779
unsigned rx_cnt)
1780
1780
{
1781
- int flags, status;
1782
-
1783
1781
if (rx_cnt) /* For read transfers, assume 1st byte contains register address */
1784
1782
buf[0 ] |= (1 << BMI160_SPI_READ_BIT);
1785
1783
1786
- /* Lock interrupts here to
1787
- * - avoid concurrent access to the SPI bus
1788
- * - avoid delays in SPI transfer due to unrelated interrupts
1789
- */
1790
- flags = interrupt_lock ();
1791
- status = ss_spi_xfer (SPI_SENSING_1, buf, tx_cnt, rx_cnt);
1792
- interrupt_unlock (flags);
1793
-
1794
- return status;
1784
+ return ss_spi_xfer (SPI_SENSING_1, buf, tx_cnt, rx_cnt);
1795
1785
}
1796
1786
1797
1787
/* * Interrupt handler for interrupts from PIN1 on the BMI160
You can’t perform that action at this time.
0 commit comments