yincheng.zhong
2023-06-03 4bdcef16fd860b674793c435288ed3afb50ddabe
Src/application/dw_app.c
@@ -1125,7 +1125,7 @@
                    pack_msgtype = rec_remotepara[0];
                    pack_index = rec_remotepara[1];
                    pack_length = rec_remotepara[2];
                    if(pack_msgtype==2)
                    if(pack_msgtype==2&&(pack_index!=DEV_ID))
                    {
                        if( pack_index == MOTOR_ONTIME_INDEX)
                        {
@@ -1135,6 +1135,7 @@
                            if(pack_index<200)
                            {
                                memcpy((uint8_t*)&g_com_map + pack_index, &rec_remotepara[3], pack_length);
                                memcpy((uint8_t*)&g_com_map2 + pack_index, &rec_remotepara[3], pack_length);
                                //返回一个error状态
                                //SendComMap(pack_datalen,pack_index);
                                save_com_map_to_flash();
@@ -1327,7 +1328,7 @@
          //  Poll();
            break;
   }       
    FZNearPoll();
 //   FZNearPoll();
    dwt_forcetrxoff();
//    userkey_state = !GET_USERKEY;
   dwt_entersleep();