alarm frequency adjusted, shorter tone

This commit is contained in:
Wolfgang Hottgenroth 2017-06-12 18:03:38 +02:00
parent afcb0326a1
commit 52c79c20fb

View File

@ -67,7 +67,7 @@ void stopBuzzing(void *handle) {
void buzz(void *handle) {
tBuzzerHandle *lBuzzerHandle = (tBuzzerHandle*) handle;
startBuzzer(lBuzzerHandle->f);
schAdd(stopBuzzing, NULL, 100, 0);
schAdd(stopBuzzing, NULL, 50, 0);
}
void alarmInit() {
@ -86,9 +86,9 @@ void enableAlarm(tAlarmType alarmType) {
uint16_t f;
if (alarmType == TIME_ALARM) {
buzzerHandle.f = 4000;
buzzerHandle.f = 1000;
} else {
buzzerHandle.f = 2000;
buzzerHandle.f = 4000;
}
if (buzzerHandle.inUse == 0) {
buzzerHandle.inUse = 1;