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) {
|
void buzz(void *handle) {
|
||||||
tBuzzerHandle *lBuzzerHandle = (tBuzzerHandle*) handle;
|
tBuzzerHandle *lBuzzerHandle = (tBuzzerHandle*) handle;
|
||||||
startBuzzer(lBuzzerHandle->f);
|
startBuzzer(lBuzzerHandle->f);
|
||||||
schAdd(stopBuzzing, NULL, 100, 0);
|
schAdd(stopBuzzing, NULL, 50, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void alarmInit() {
|
void alarmInit() {
|
||||||
@ -86,9 +86,9 @@ void enableAlarm(tAlarmType alarmType) {
|
|||||||
|
|
||||||
uint16_t f;
|
uint16_t f;
|
||||||
if (alarmType == TIME_ALARM) {
|
if (alarmType == TIME_ALARM) {
|
||||||
buzzerHandle.f = 4000;
|
buzzerHandle.f = 1000;
|
||||||
} else {
|
} else {
|
||||||
buzzerHandle.f = 2000;
|
buzzerHandle.f = 4000;
|
||||||
}
|
}
|
||||||
if (buzzerHandle.inUse == 0) {
|
if (buzzerHandle.inUse == 0) {
|
||||||
buzzerHandle.inUse = 1;
|
buzzerHandle.inUse = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user