From a04a376afc8af85d0d5c8249fe405009a541367f Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 11 Sep 2019 12:29:02 +0200 Subject: [PATCH] [SX126x] Fixed waiting for BUSY pin in sleep mode (#42) --- src/modules/SX126x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX126x.cpp b/src/modules/SX126x.cpp index 94b9c581..dd920d0f 100644 --- a/src/modules/SX126x.cpp +++ b/src/modules/SX126x.cpp @@ -325,7 +325,7 @@ int16_t SX126x::scanChannel() { int16_t SX126x::sleep() { 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 delayMicroseconds(500);