diff options
| author | Keith Packard <keithp@keithp.com> | 2018-03-16 14:53:14 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-03-16 14:53:14 -0700 | 
| commit | 4894d965d73231b5c74810d826c7c97fa1bd7803 (patch) | |
| tree | bae983c8d116b1e54033c20d1bb2ab38a44748e1 /src/kernel/ao_panic.c | |
| parent | 1ea6188a9c78ab0642001110cac6c3b35e8ccc88 (diff) | |
altos: Make panic beeps use fixed frequencies
This ensures that the beeps will work even before the configuration
has been loaded.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_panic.c')
| -rw-r--r-- | src/kernel/ao_panic.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/kernel/ao_panic.c b/src/kernel/ao_panic.c index 3feecd5a..bd55eb9c 100644 --- a/src/kernel/ao_panic.c +++ b/src/kernel/ao_panic.c @@ -64,9 +64,9 @@ ao_panic(uint8_t reason)  		ao_panic_delay(20);  #if HAS_BEEP  		for (n = 0; n < 5; n++) { -			ao_beep(AO_BEEP_HIGH); +			ao_beep(AO_BEEP_HIGH_PANIC);  			ao_panic_delay(1); -			ao_beep(AO_BEEP_LOW); +			ao_beep(AO_BEEP_LOW_PANIC);  			ao_panic_delay(1);  		}  		ao_beep(AO_BEEP_OFF); @@ -78,7 +78,7 @@ ao_panic(uint8_t reason)  #endif  		if (reason & 0x40) {  			ao_led_on(AO_LED_PANIC); -			ao_beep(AO_BEEP_HIGH); +			ao_beep(AO_BEEP_HIGH_PANIC);  			ao_panic_delay(40);  			ao_led_off(AO_LED_PANIC);  			ao_beep(AO_BEEP_OFF); @@ -86,7 +86,7 @@ ao_panic(uint8_t reason)  		}  		for (n = 0; n < (reason & 0x3f); n++) {  			ao_led_on(AO_LED_PANIC); -			ao_beep(AO_BEEP_MID); +			ao_beep(AO_BEEP_MID_PANIC);  			ao_panic_delay(10);  			ao_led_off(AO_LED_PANIC);  			ao_beep(AO_BEEP_OFF); | 
