Bug fix in audio - playASAP sending 1 to many events. So a request for 3 beeps would play 4 etc..
Fix in haptic to do correct number of vibrations on time count down.
This commit is contained in:
+13
-1
@@ -94,8 +94,14 @@ inline void hapticAudioEvent(uint8_t e)
|
||||
{
|
||||
if (g_eeGeneral.hapticMode>=-1 && e<=AU_ERROR)
|
||||
hapticDefevent(1);
|
||||
else if (e == AU_TIMER_30)
|
||||
hapticDefevent(3);
|
||||
else if (e == AU_TIMER_20)
|
||||
hapticDefevent(2);
|
||||
else if (e == AU_TIMER_10)
|
||||
hapticDefevent(1);
|
||||
else if (g_eeGeneral.hapticMode==0 && e>=AU_WARNING1)
|
||||
hapticDefevent(1);
|
||||
hapticDefevent(1);
|
||||
else if (g_eeGeneral.hapticMode>0)
|
||||
hapticDefevent(0);
|
||||
}
|
||||
@@ -104,6 +110,12 @@ inline void hapticBeepEvent(uint8_t e)
|
||||
{
|
||||
if (g_eeGeneral.hapticMode>=-1 && e>=3)
|
||||
hapticDefevent(1);
|
||||
else if (e == AU_TIMER_30)
|
||||
hapticDefevent(3);
|
||||
else if (e == AU_TIMER_20)
|
||||
hapticDefevent(2);
|
||||
else if (e == AU_TIMER_10)
|
||||
hapticDefevent(1);
|
||||
else if (g_eeGeneral.hapticMode==0 && e>0)
|
||||
hapticDefevent(1);
|
||||
else if (g_eeGeneral.hapticMode>0)
|
||||
|
||||
Reference in New Issue
Block a user