瀏覽代碼

Merge pull request #2072 from kuhnmarek/MK3_PFW-961_blind_sound

changed blind sound
DRracer 5 年之前
父節點
當前提交
9f8590c572
共有 1 個文件被更改,包括 9 次插入4 次删除
  1. 9 4
      Firmware/sound.cpp

+ 9 - 4
Firmware/sound.cpp

@@ -135,10 +135,15 @@ switch(eSoundMode)
 
 static void Sound_DoSound_Blind_Alert(void)
 {
-     _tone(BEEPER,300);
-     _delay_ms(75);
-     _noTone(BEEPER);
-     _delay_ms(75);
+     uint8_t nI;
+
+     for(nI=0; nI<20; nI++)
+     {
+         WRITE(BEEPER,HIGH);
+         delayMicroseconds(94);
+         WRITE(BEEPER,LOW);
+         delayMicroseconds(94);
+     }
 }
 
  static void Sound_DoSound_Encoder_Move(void)