Merge remote-tracking branch 'origin/dev' into main

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5 committed 2026-09-02 02:19:04 +02:00
commit bd60aa4322
68 files changed
+2052 -357

No files matched your search

+8 -1
View File
@@ -48,6 +48,13 @@ uint32_t RadioLibWrapper::getRngSeed() {
}
void RadioLibWrapper::setTxPower(int8_t dbm) {
#if defined(USE_LR2021)
// Upstream 114093ee: on LR2021, setOutputPower() writes the PA config and
// TxParams, which are standby-only commands, and recvRaw() keeps state ==
// STATE_RX there, so nothing re-arms the receiver by itself. Drop to standby
// first and let checkRecv() re-arm Rx.
idle();
#endif
// CUSTOM (TeTeHacko): keep the status. The signature is an upstream callback
// and has to stay void, but the return value must not be thrown away: SX1262
// accepts only -9..+22 dBm and rejects the rest WITHOUT touching the PA, while
@@ -369,4 +376,4 @@ PacketMillis RadioLibWrapper::calcMaxPacketMillis(uint8_t sf, float bw, uint8_t
if (cr >= 5 && cr < 8) { payload_us = (payload_us * 8) / cr; }
return PacketMillis {(preamble_us + 999) / 1000, (payload_us + 999) / 1000};
}
}