Skip to content

Commit 69f954d

Browse files
committed
drv/bluetooth/cc2640: ensure known mrdy state on power off
Theoretically, it is possible to be reset in the middle of a transaction.
1 parent 0f0e904 commit 69f954d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/pbio/drv/bluetooth/bluetooth_stm32_cc2640.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,7 @@ PROCESS_THREAD(pbdrv_bluetooth_spi_process, ev, data) {
11381138
static uint8_t read_xfer_size, xfer_size;
11391139

11401140
PROCESS_EXITHANDLER({
1141+
spi_set_mrdy(false);
11411142
bluetooth_reset(RESET_STATE_OUT_LOW);
11421143
bluetooth_ready = false;
11431144
});

0 commit comments

Comments
 (0)