Kaynağa Gözat

删除flash测试代码

xuxinyi 2 ay önce
ebeveyn
işleme
fa3bd0323f
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9 9
      Core/Src/main.c

+ 9 - 9
Core/Src/main.c

@@ -262,15 +262,15 @@ int main(void)
   powerOn();
   E52_CtlPowerOn_Fun();
 
-  deviceInfo.loraDeviceAddress_H = 0xFE;
-  deviceInfo.loraDeviceAddress_L = 0xE1;
-  Flash_Write_LoraAddr(deviceInfo.loraDeviceAddress_H, deviceInfo.loraDeviceAddress_L);
-  uint8_t addrH, addrL;
-  while (TRUE) {
-    Flash_Read_LoraAddr(&addrH, &addrL);
-    printf("LoraAddr: %02X%02X\r\n", addrH, addrL);
-    HAL_Delay(1000);
-  }
+  // deviceInfo.loraDeviceAddress_H = 0xFE;
+  // deviceInfo.loraDeviceAddress_L = 0xE1;
+  // Flash_Write_LoraAddr(deviceInfo.loraDeviceAddress_H, deviceInfo.loraDeviceAddress_L);
+  // uint8_t addrH, addrL;
+  // while (TRUE) {
+  //   Flash_Read_LoraAddr(&addrH, &addrL);
+  //   printf("LoraAddr: %02X%02X\r\n", addrH, addrL);
+  //   HAL_Delay(1000);
+  // }
   // 在需要设置RTC时间的地方直接调用
   // 参数依次为:小时、分钟、秒、星期、月份、日期、年份(均为BCD格式)
   RTC_SetDateTime(&hrtc,