[SX126x] Fixed waiting for BUSY pin in sleep mode (#42)
This commit is contained in:
parent
4a78527d98
commit
a04a376afc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue