[Taranis X9E] A little vibration on startup / shutdown to wake the user

up
This commit is contained in:
bsongis
2015-07-14 19:16:16 +02:00
parent 13958c9396
commit 7d9cd8c869
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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