[SX126x] Fixed waiting for BUSY pin in sleep mode (#42)

This commit is contained in:
jgromes 2019-09-11 12:29:02 +02:00
parent 4a78527d98
commit a04a376afc

View file

@ -325,7 +325,7 @@ int16_t SX126x::scanChannel() {
int16_t SX126x::sleep() { int16_t SX126x::sleep() {
uint8_t data[] = {SX126X_SLEEP_START_COLD | SX126X_SLEEP_RTC_OFF}; uint8_t data[] = {SX126X_SLEEP_START_COLD | SX126X_SLEEP_RTC_OFF};
int16_t state = SPIwriteCommand(SX126X_CMD_SET_SLEEP, data, 1); int16_t state = SPIwriteCommand(SX126X_CMD_SET_SLEEP, data, 1, false);
// wait for SX126x to safely enter sleep mode // wait for SX126x to safely enter sleep mode
delayMicroseconds(500); delayMicroseconds(500);