WXK
2024-01-31 d106740b60bd60d23ec3d318cb8a6a7b16633aab
Core/Src/main.c
@@ -126,7 +126,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] = (2<<8)|1;
   g_com_map[VERSION] = (2<<8)|3;
    if(g_com_map[GPS_ONTIME]==0/*||g_com_map[GPS_ONTIME]>10000*/)
    {
    g_com_map[GPS_ONTIME]=3600;
@@ -188,7 +188,7 @@
      motor_enable=0;
   }
    tag_frequency = 1000/interval;
      if (HAL_LPTIM_TimeOut_Start_IT(&hlptim1, LPTIMER_1S_COUNT, slot_startcount) != HAL_OK)  //system time is 1010ms   1 puls=30.518us
      if (HAL_LPTIM_TimeOut_Start_IT(&hlptim1, LPTIMER_1S_COUNT, 0) != HAL_OK)  //system time is 1010ms   1 puls=30.518us
  {
    Error_Handler();
  }