Systems: bug fix

This commit is contained in:
Sidi Liang 2020-05-16 17:17:39 +08:00
parent 99d0347ceb
commit ccadf090c3
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
1 changed files with 2 additions and 2 deletions

View File

@ -552,7 +552,7 @@ var Safety = {
},
disableFrontRadar: func(){
#Disables the front radar
me.frontRadar.stop();
if(me.frontRadarEnabled) me.frontRadar.stop();
me.frontRadarEnabled = 0;
},
toggleFrontRadar: func(){
@ -635,7 +635,7 @@ var Safety = {
reset: func(){
#resetting stops the safety system
me.safetySystemTimer.stop();
me.frontRadar.stop();
if(me.frontRadarEnabled) me.frontRadar.stop();
me.frontAirbagProp.setValue(0);
me.sideAirbagProp.setValue(0);
me.aebStateProp.setValue(0);