Browse Source

修复spi的myRadioSpi_rwByte超时操作i

dropLin 4 weeks ago
parent
commit
e0595c48f3
2 changed files with 8 additions and 1 deletions
  1. 7 0
      gitFocePushRemote.bat
  2. 1 1
      radio/myRadio_gpio.c

+ 7 - 0
gitFocePushRemote.bat

@@ -0,0 +1,7 @@
+@echo off  
+setlocal  
+  
+:: 假设你已经处于正确的Git仓库目录中  
+  
+:: 添加所有更改到暂存区  
+git push -f --set-upstream origin master:master

+ 1 - 1
radio/myRadio_gpio.c

@@ -252,7 +252,7 @@ void myRadio_gpio_init(RADIO_GPIO_CALLBACK cb)
 }
 uint8_t myRadioSpi_rwByte(uint8_t byteToWrite)
 {
-    uint16_t i;
+    uint16_t i = 0;
     uint8_t temp;
     temp = 0;   
 #if defined(SPI_HARD)