changeset 271:d478d9ed1c3e

BZ_KeyBeep_{ON,OFF} functions: call BZ_Tone() first, then BZ_Enable()
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 13 Jun 2021 18:35:26 +0000
parents 4f59ca578891
children edd8482a6576
files src/cs/drivers/drv_app/buzzer/buzzer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/buzzer/buzzer.c	Sun Jun 13 18:32:16 2021 +0000
+++ b/src/cs/drivers/drv_app/buzzer/buzzer.c	Sun Jun 13 18:35:26 2021 +0000
@@ -89,8 +89,8 @@
 
   BZ_Init ();
   BZ_Volume (255);
+  BZ_Tone (50);
   BZ_Enable ();
-  BZ_Tone (50);
 
   for (i = 0; i < 17000; i++)
     ;
@@ -112,8 +112,8 @@
 
   BZ_Init ();
   BZ_Volume (255);
+  BZ_Tone (100);
   BZ_Enable ();
-  BZ_Tone (100);
 
   for (i = 0; i < 17000; i++)
     ;