WXK
2024-09-13 49e8ee393027960925ebb491d469e512c247ce24
Src/main.c
@@ -316,7 +316,7 @@
   hardware_pici = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2);
   hardware_type = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4);
   //deca_sleep(1000);
   g_com_map[VERSION] = (1<<8)|26;
   g_com_map[VERSION] = (1<<8)|29;
//    g_com_map[DEV_ID]=1158;
//    #ifdef DEBUG_MODE
//   // g_com_map[GROUP_ID]=21;
@@ -452,7 +452,7 @@
      //  SystemClock_Config();
     irq_num++;
        lora_irq_flag = 1;
    //    RadioIrqProcess();
    RadioIrqProcess();
    }
    if(GPIO_Pin == GPIO_PIN_1)//按键
    {
@@ -759,13 +759,13 @@
      else
      {
//      HAL_IWDG_Refresh(&hiwdg);
          if(lora_irq_flag)
          {
              lora_irq_flag = 0;
              lora_working_flag = 1;
              RadioIrqProcess();
              lora_working_flag = 0;
          }
//          if(lora_irq_flag)
//          {
//              lora_irq_flag = 0;
//              lora_working_flag = 1;
//              RadioIrqProcess();
//              lora_working_flag = 0;
//          }
//          if(uwb_irq_flag)
//          {
//              MbxTagUwbRec();