|
@@ -64,6 +64,10 @@ void Event_1ms(void)
|
|
|
/* 1st FSM control */
|
|
|
FSM_1st_Main();
|
|
|
FSM1st_Sys_state.Event_hook();
|
|
|
+
|
|
|
+ /* Bike light control */
|
|
|
+ Can_Light_switch();
|
|
|
+ bikelight_voBikeLightControl(cp_stBikeRunInfoPara.uwLightSwitch, BikeBrake_blGetstate(), ass_stParaCong.uwLightVoltage);
|
|
|
|
|
|
/* Power control */
|
|
|
power_voPowerManagement(ass_stParaCong.uwAutoPowerOffTime, cp_ulSystickCnt, OBC_ButtonStatus.ulButtonSetTimeCnt, \
|
|
@@ -324,8 +328,8 @@ void Event_10ms(void)
|
|
|
}
|
|
|
|
|
|
// Bike light control
|
|
|
- Can_Light_switch();
|
|
|
- bikelight_voBikeLightControl(cp_stBikeRunInfoPara.uwLightSwitch, BikeBrake_blGetstate(), ass_stParaCong.uwLightVoltage);
|
|
|
+// Can_Light_switch();
|
|
|
+// bikelight_voBikeLightControl(cp_stBikeRunInfoPara.uwLightSwitch, BikeBrake_blGetstate(), ass_stParaCong.uwLightVoltage);
|
|
|
|
|
|
// Trip cal when open
|
|
|
bikespeed_votempTripCal();
|