mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-08-14 09:29:49 +00:00
Clean up comments in startReceive method
Removed unnecessary comments regarding RX timeout and IRQ mask.
This commit is contained in:
@@ -37,13 +37,6 @@ class CustomLR1110 : public LR1110 {
|
||||
|
||||
int16_t startReceive() override {
|
||||
// include the PREAMBLE_DETECTED irq bit in reported flags.
|
||||
//
|
||||
// NOTE: the first argument is the RX *timeout*, not an IRQ mask. Passing
|
||||
// RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED (1<<4 = 16) here armed the receiver
|
||||
// with a 16-tick timeout -- at the LR11x0's 30.52us tick that is a ~488us
|
||||
// receive window, so the radio dropped out of RX before any packet could
|
||||
// arrive and the node never received anything. It must stay RX_TIMEOUT_INF
|
||||
// (continuous RX), which is what LR11x0::startReceive() itself passes.
|
||||
return LR1110::startReceive(RADIOLIB_LR11X0_RX_TIMEOUT_INF, RADIOLIB_IRQ_RX_DEFAULT_FLAGS | (1UL << RADIOLIB_IRQ_PREAMBLE_DETECTED), RADIOLIB_IRQ_RX_DEFAULT_MASK, 0);
|
||||
}
|
||||
|
||||
@@ -99,4 +92,4 @@ class CustomLR1110 : public LR1110 {
|
||||
}
|
||||
|
||||
uint8_t getSpreadingFactor() const { return spreadingFactor; }
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user