| | |
| | | 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) |
| | | { |
| | |
| | | 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(); |
| | |
| | | // Poll(); |
| | | break; |
| | | } |
| | | FZNearPoll(); |
| | | // FZNearPoll(); |
| | | dwt_forcetrxoff(); |
| | | // userkey_state = !GET_USERKEY; |
| | | dwt_entersleep(); |