docs: document NO_SIGNAL sentinel and DTR polling interval
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -24,7 +24,8 @@ const BOARD_NAME: &str = if cfg!(feature = "rak_wisblock_4631") {
|
|||||||
/// Duration per sparkline slot. 64 slots * 1s = ~1 minute of history.
|
/// Duration per sparkline slot. 64 slots * 1s = ~1 minute of history.
|
||||||
const SPARK_SLOT_MS: u64 = 1000;
|
const SPARK_SLOT_MS: u64 = 1000;
|
||||||
|
|
||||||
/// Sentinel: no packet received in this slot.
|
/// Sentinel: no packet received in this slot. Below SX1262 sensitivity
|
||||||
|
/// floor (-120 dBm), so it cannot be confused with a real RSSI value.
|
||||||
const NO_SIGNAL: i16 = -121;
|
const NO_SIGNAL: i16 = -121;
|
||||||
|
|
||||||
struct DisplayState {
|
struct DisplayState {
|
||||||
|
|||||||
+1
-1
@@ -105,7 +105,7 @@ async fn protocol_loop<'d, D: embassy_usb_driver::Driver<'d>>(
|
|||||||
match select3(
|
match select3(
|
||||||
receiver.read_packet(&mut read_buf),
|
receiver.read_packet(&mut read_buf),
|
||||||
responses.receive(),
|
responses.receive(),
|
||||||
embassy_time::Timer::after_millis(250),
|
embassy_time::Timer::after_millis(250), // DTR poll interval for disconnect detection
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user