mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Oops, in previous commit(rev.1.4), I replaced
pitch and duration only in ``struct'', I forgot to replace these in sysbeep and timeout, sorry.
This commit is contained in:
parent
84aa58ab03
commit
3637a0ce8b
1 changed files with 6 additions and 6 deletions
|
|
@ -73,9 +73,9 @@ pccard_beep_sub(void *arg)
|
|||
struct tone *melody;
|
||||
melody = (struct tone *)arg;
|
||||
|
||||
if (melody->duration != NULL) {
|
||||
sysbeep(melody->duration, melody->pitch);
|
||||
timeout(pccard_beep_sub, ++melody, melody->pitch);
|
||||
if (melody->pitch != NULL) {
|
||||
sysbeep(melody->pitch, melody->duration);
|
||||
timeout(pccard_beep_sub, ++melody, melody->duration);
|
||||
} else
|
||||
allow_beep = BEEP_ON;
|
||||
}
|
||||
|
|
@ -86,10 +86,10 @@ pccard_beep_start(void *arg)
|
|||
struct tone *melody;
|
||||
melody = (struct tone *)arg;
|
||||
|
||||
if (allow_beep == BEEP_ON && melody->duration != NULL) {
|
||||
if (allow_beep == BEEP_ON && melody->pitch != NULL) {
|
||||
allow_beep = BEEP_OFF;
|
||||
sysbeep(melody->duration, melody->pitch);
|
||||
timeout(pccard_beep_sub, ++melody, melody->pitch);
|
||||
sysbeep(melody->pitch, melody->duration);
|
||||
timeout(pccard_beep_sub, ++melody, melody->duration);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue