    }
       else {
         showString(PSTR("No Ack "));
+#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)  
+        mySerial.print(scan);
+#else
         Serial.print(scan);
+#endif
         showString(PSTR("\r"));
         delay(50); 
       }
   }
   if ((upHigh == 0) || (upLow == 0xFFFF)) return;  // If nobody answers then restart loop
     showString(PSTR("Scan up complete "));
+#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)  
+    mySerial.print(upLow);
+    showString(PSTR("-"));
+    mySerial.println(upHigh);
+#else
     Serial.print(upLow);
     showString(PSTR("-"));
     Serial.println(upHigh);
-    delay(100);
+#endif
+    delay(50);
     downLow = 0xFFFF; 
     downHigh = 0;
   for (scan = (frequency_offset + SCAN_WIDTH); scan > (frequency_offset - SCAN_WIDTH); --scan)

     delay(50); 
   }
      else {
        showString(PSTR("No Ack "));
        Serial.print(scan);
        showString(PSTR("\r"));
        delay(50); 
      }
  }
  if ((downHigh == 0) || (downLow == 0xFFFF)) return;  // If nobody answers then restart loop
  showString(PSTR("Scan down complete "));
  Serial.print(downLow);
  showString(PSTR("-"));
  Serial.println(downHigh);

        
 frequency_offset = ( ((upLow + downLow) / 2) + ((((upHigh + downHigh) / 2) - ((upLow + downLow)/ 2)) / 2)   );
  showString(PSTR("Centre frequency offset is "));
  Serial.println(frequency_offset);
  delay(50);
  setEEProm();
  while(1) // Nothing more

    if (c == 0)
      break;
    if (c == '\n')
#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)   
      mySerial.print('\r');
    mySerial.print(c);
#else
      Serial.print('\r');
    Serial.print(c);
#endif
  }
}
static void setEEProm()
