 // reps: how many times we send call tone()
 // freq: value of the frequecy
 // d: pause between tones in millis
-void makeNoise(uint8_t reps, uint8_t freq, uint16_t d) {
+void makeNoise(uint8_t reps, uint16_t freq, uint16_t d) {
   for (uint16_t i = 0; i < reps; i++) {
     tone(SPEAKER_PIN, freq);
     delay(d);

}

void bsAlarm() {
  makeNoise(30, tones[9], 5);
  for (uint16_t i = 0; i < 10 ; i++) {
    lightUp(255, 0, 0, 50);
    makeNoise(10, tones[9], 5);
    ledOFF();
    delay(50);
  }

  flashLed(BOOT_PIN, 3, 300);
  server.listenOnLocalhost();
  server.begin();
  delay(2000); // wait for all processes to start
  yunAddr = getIPaddr();
  bsURL = "http://" + yunAddr + "/arduino/";
  flashLed(BOOT_PIN, 2, 100);
  makeNoise(2, tones[9], 100);
  sendIP();
  buildStartPage();
  ledOFF();
}

