alarm frequency adjusted, shorter tone
This commit is contained in:
parent
afcb0326a1
commit
52c79c20fb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user