Skip to content

Commit

Permalink
[SX126x] Fixed waiting for BUSY pin in sleep mode (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Sep 11, 2019
1 parent 4a78527 commit a04a376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX126x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a04a376

Please sign in to comment.