WXK
2024-04-10 d6d0f9b94b8488508f0c8eab0602d9dcfec31505
APL/App.c
@@ -207,6 +207,10 @@
        DBG_Poll();
        IdleTask();
        uwbled=LEDOFF;
        Internet_Poll();
        HIDO_TimerPoll();
        HIDO_ATLitePoll();
        UDPClient_Poll();
            if(bat_percent>90)
            {
                powerled = RED;
@@ -250,7 +254,7 @@
    //deca_sleep(1000);
    g_com_map[GROUP_ID]=0;
   g_com_map[VERSION] = (1<<8)|5;
   g_com_map[VERSION] = (1<<8)|6;
    if (g_com_map[COM_INTERVAL] <50)
    {
@@ -447,6 +451,23 @@
        }
        fangchai_flag=1;
        yundong_state=0;
        if(HAL_GPIO_ReadPin(INPUT_5V_GPIO_Port,INPUT_5V_Pin))
        {
            if(bat_percent>90)
            {
                powerled = RED;
                gpsled = LEDOFF;
                uwbled = LEDOFF;
                loraled = LEDOFF;
                chongman_flag=1;
            }
            else
            {
                powerled = RED;
            }
        }
        else
        {chongman_flag=0;}
        if(fangchai_state==0||fangchai_state==1)
        {
//            PowerLedTask();