Bläddra i källkod

base-station: Enable dynamic packet length.

Improves compatibility with counterfeit "NRF24L01" chips.
Mathias Gottschlag 5 år sedan
förälder
incheckning
50f4c6efb6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      base-station/software/src/radio.rs

+ 1
- 1
base-station/software/src/radio.rs Visa fil

@@ -156,7 +156,7 @@ impl RadioTask {
156 156
         nrf24.flush_tx()?;
157 157
         nrf24.set_auto_ack(&[true; 6])?;
158 158
         info!("auto ack: {:?}", nrf24.get_auto_ack()?);
159
-        nrf24.set_pipes_rx_lengths(&[Some(32); 6])?;
159
+        nrf24.set_pipes_rx_lengths(&[None; 6])?;
160 160
 
161 161
         self.nrf24 = Some(nrf24.rx().unwrap());
162 162
         self.irq = Some(irq);

Loading…
Avbryt
Spara