* basic CAD before TX, for sx126x wrappers

This commit is contained in:
Scott Powell 2025-01-21 13:37:32 +11:00
parent e838f405a7
commit de27dfacb6
5 changed files with 24 additions and 3 deletions

View file

@ -30,6 +30,11 @@ void RadioLibWrapper::begin() {
}
}
void RadioLibWrapper::idle() {
_radio->standby();
state = STATE_IDLE; // need another startReceive()
}
int RadioLibWrapper::recvRaw(uint8_t* bytes, int sz) {
if (state & STATE_INT_READY) {
int len = _radio->getPacketLength();