[Taranis X9E] A little vibration on startup / shutdown to wake the user
up
This commit is contained in:
@@ -2664,6 +2664,7 @@ uint32_t pwrCheck()
|
||||
}
|
||||
}
|
||||
#else
|
||||
haptic.play(15, 3, PLAY_NOW);
|
||||
pwr_check_state = PWR_CHECK_OFF;
|
||||
return e_power_off;
|
||||
#endif
|
||||
|
||||
@@ -50,8 +50,9 @@ void hapticOn( uint32_t pwmPercent )
|
||||
|
||||
pwmptr = PWM ;
|
||||
|
||||
if (pwmPercent > 100)
|
||||
if (pwmPercent > 100) {
|
||||
pwmPercent = 100 ;
|
||||
}
|
||||
|
||||
pwmptr->PWM_CH_NUM[2].PWM_CDTYUPD = pwmPercent ; // Duty
|
||||
pwmptr->PWM_ENA = PWM_ENA_CHID2 ; // Enable channel 2
|
||||
|
||||
@@ -183,8 +183,9 @@ void boardInit()
|
||||
}
|
||||
else {
|
||||
if (pwr_on != 1) {
|
||||
backlightInit();
|
||||
pwr_on = 1;
|
||||
backlightInit();
|
||||
haptic.play(15, 3, PLAY_NOW);
|
||||
}
|
||||
}
|
||||
lcdRefresh();
|
||||
|
||||
Reference in New Issue
Block a user