   if (isSource) {
     if (!digitalRead(button2pin)) {
       if(SERIAL_DEBUG) Serial.println("alert");
-      char c = ALERT; 
+      char c = ALERT;
       for (int i=0; i<NUM_CONN; i++) bus[i]->write(c);
     }
   }
-  
+
   // check all lines for incoming data
   for (int i=0;i<NUM_CONN;i++) if(bus[i]->available()) {
     char c = bus[i]->read();


void sendEnergy() {
  if(SERIAL_DEBUG) Serial.println("send energy");
  char c = ENERGY;
  for (int i=0; i<NUM_CONN; i++) bus[i]->write(c);
  addTimer(100, sendEnergy);
}


  for (int i=0; i<NUM_CONN; i++) distanceToSource[i] = 99;
  shortestDistanceToSource = 99;
  alertState = false;

  // seed random generator
  randomSeed(analogRead(7));

  // start sending energy if we're a source
  if (isSource) addTimer(100, sendEnergy);

  if(SERIAL_DEBUG) {
    Serial.begin(9600);
    Serial.println("setup");
