+ /* if filtering is disabled, just copy the radio input
+ * on the buzzer */
+ if (mode == MODE_NO_FILTER) {
+ if (RADIO_READ())
+ BUZZER_ON();
+ else
+ BUZZER_OFF();
+ }
+ /* with filtering enabled, output a square signal at
+ * 625 hz if beacon is detected */
+ else {
+ if ((detected == 1) && (i & 4))
+ BUZZER_ON();
+ else
+ BUZZER_OFF();
+ }