You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After putting the module into sleep mode, even if the module is woken up after by pulling SS LOW, all attempts to transmit will result in RADIOLIB_ERR_TX_TIMEOUT. In my example sketch below, the "transmitting..." line is never sent over serial if the call to sleep is not commented out.
To Reproduce
#include<Arduino.h>
#include"Adafruit_TinyUSB.h"
#include<SPI.h>
#include<variant.h>
#include<RadioLib.h>
SX1280 radio = new Module(24, 15, 16, 25);
volatilebool packet_rx = false;
int packets = 0;
voidsetflag() {
packet_rx = true;
}
voidsetup() {
Serial.begin(115200);
while(!Serial);
uint8_t sf = 10;
int state = radio.begin(2408, 1625, sf, 5);// 0x14 1, 30);
radio.setRfSwitchPins(19, 20);
radio.explicitHeader();
radio.setCRC(2);
//radio.setSyncWord(0x14, 0x24);if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!"));
} else {
Serial.print(F("failed, code "));
Serial.println(state);
while (true) { delay(10); }
}
radio.sleep();
}
voidloop() {
digitalWrite(24, LOW);
delay(1);
digitalWrite(24, HIGH);
delay(1);
radio.standby();
uint8_t data[255] = {0};
for (int i = 0; i < 255; i++) {
data[i] = i;
}
int16_t status;
while (true) {
status = radio.transmit(data, 255);
//radio.transmit(data, 7);if (status == RADIOLIB_ERR_NONE) Serial.println("transmitting...");
}
}
Expected behavior
Transmitting after sleep should work as expected.
Additional info (please complete):
Library version 7.0.0
The text was updated successfully, but these errors were encountered:
jacobeva
added a commit
to jacobeva/RadioLib
that referenced
this issue
Oct 2, 2024
Describe the bug
After putting the module into sleep mode, even if the module is woken up after by pulling SS LOW, all attempts to transmit will result in
RADIOLIB_ERR_TX_TIMEOUT
. In my example sketch below, the "transmitting..." line is never sent over serial if the call to sleep is not commented out.To Reproduce
Expected behavior
Transmitting after sleep should work as expected.
Additional info (please complete):
The text was updated successfully, but these errors were encountered: