Beeper mode is now splitted from beeper length. Haptic mode added. Haptic only sounds now ok on v4.

This commit is contained in:
bsongis
2012-02-16 13:12:35 +00:00
parent a021b66a9b
commit c4147980c9
12 changed files with 159 additions and 135 deletions
+3 -5
View File
@@ -634,8 +634,8 @@ void checkTHR()
void checkAlarm() // added by Gohst
{
if(g_eeGeneral.disableAlarmWarning) return;
if(!g_eeGeneral.beeperVal) alert(STR_ALARMSDISABLED);
if (g_eeGeneral.disableAlarmWarning) return;
if (g_eeGeneral.beeperMode == -2/*TODO constant*/) alert(STR_ALARMSDISABLED);
}
void checkSwitches()
@@ -1088,9 +1088,7 @@ void evalFunctions()
#if defined(AUDIO)
audioDefevent(AU_FRSKY_FIRST+sd->param);
#else
if (g_eeGeneral.beeperVal>0) {
_beep(10);
}
beep(3);
#endif
}
#if defined(SOMO)