Commit f6bf1b91 authored by 何锐's avatar 何锐

feat:调整自走模式切换下一步时间

parent a8485c07
......@@ -493,7 +493,7 @@ interrupt void Api_RTC_isr(void)
}
if(Key.StepAuto == 1){
if(RT_2s >= T_10s){
if(RT_2s >= T_3_5s){
RT_2s = null;
Key.CAN_Step++;
......
......@@ -44,8 +44,11 @@ void APP_Button_Proc(void){
Key.StepAuto = 2;
}*/
if((Key.PushTime_2 > T_2s) || (Key.PushTime_1 > T_2s)){
Key.StepAuto = Key.StepAuto==1 ? 0 : 1;
if((Key.PushTime_2 > T_2s) || (Key.PushTime_1 > T_2s))
{
Key.StepAuto = !(Key.StepAuto);
Key.PushTime_2 = 0;
Key.PushTime_1 = 0;
}
if(pSB1 == 1){
......
......@@ -10,7 +10,7 @@ Target=TBDML
Layout=C_layout.hwl
LoadDialogOptions=AUTOERASEANDFLASH RUNANDSTOPAFTERLOAD="main"
CPU=HC12
MainFrame=2,3,-1,-1,-1,-1,332,132,1772,881
MainFrame=2,3,-1,-1,-1,-1,-1547,237,-107,986
TOOLBAR=57600 57601 32795 0 57635 57634 57637 0 57671 57669 0 32777 32776 32782 32780 32781 32778 0 32806
......@@ -53,3 +53,6 @@ File0=C_layout.hwl
File1=
File2=
File3=
[Recent HI-WAVE FindProcedure Search]
Search0=APP_Button_Proc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment