From 1eb000baf2b79b9685bed06beb61eb9dfc6868ca Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Sat, 26 Aug 2023 07:43:04 -0300
Subject: [PATCH] faster SPI bus speed

---
 src/radio.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/radio.rs b/src/radio.rs
index 4e22315..0f40a2c 100644
--- a/src/radio.rs
+++ b/src/radio.rs
@@ -23,7 +23,7 @@ pub struct McuRadio {
 
 impl McuRadio {
     pub fn new() -> anyhow::Result<Self> {
-        let spi = Spi::new(Bus::Spi0, SlaveSelect::Ss1, 1_000_000, Mode::Mode0)?;
+        let spi = Spi::new(Bus::Spi0, SlaveSelect::Ss1, 2_000_000, Mode::Mode0)?;
         let reset_pin = Gpio::new()?.get(8)?.into_output_high();
 
         let mut s = Self { reset_pin, spi };
-- 
GitLab