浏览代码

base-station: Enable dynamic packet length.

Improves compatibility with counterfeit "NRF24L01" chips.
父节点
当前提交
50f4c6efb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      base-station/software/src/radio.rs

+ 1
- 1
base-station/software/src/radio.rs 查看文件

@@ -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);

正在加载...
取消
保存