zhyinch
2021-01-28 b181cd0402de3a02f88069981e8277c6d734647e
Src/application/dw_app.c
@@ -69,9 +69,8 @@
#define FINAL_MSG_FINAL_TX_TS_IDX 18
#define FINAL_MSG_TS_LEN 4
#define STARTPOLL  REGPOLL
#define SWITCHBASE_DIST
//#define SWITCHBASE_ZHUANDIAN
#define STARTPOLL  REGPOLL//#define SWITCHBASE_DIST
#define SWITCHBASE_ZHUANDIAN
enum enumtagstate
{
   REGPOLL,
@@ -840,9 +839,10 @@
            pack_length = rec_remotepara[2];
            if(pack_msgtype==2)
            {
               if( pack_index == MOTOR_ONTIME_INDEX&&motor_keeptime==0)
               if( pack_index == MOTOR_ONTIME_INDEX)
               {
               motor_keeptime = rec_remotepara[3];
                        if(motor_keeptime==0)
                            motor_keeptime = rec_remotepara[3];
               }else{
                  memcpy((uint8_t*)&g_com_map + pack_index, &rec_remotepara[3], pack_length);
               //返回一个error状态