kopia lustrzana https://github.com/jgromes/RadioLib
[SX126x] Fixed waiting for BUSY pin in sleep mode (#42)
rodzic
4a78527d98
commit
a04a376afc
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue