aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pwm.c b/pwm.c
index 6990c0d..b2f592b 100644
--- a/pwm.c
+++ b/pwm.c
@@ -155,12 +155,12 @@ void pwmSetOff () {
}
void speakerStart (const speakerMode mode __unused__) {
- /* 12.8ms */
- speakerCount = 100;
+ enableFast ();
for (uint8_t i = 0; i < PWM_MAX_BRIGHTNESS; i += 2) {
pwmvalue[i][1] |= (1 << PD6);
}
- enableFast ();
+ /* 12.8ms */
+ speakerCount = 100;
}
void speakerInit () {