      delay(50); 
    }
       else {
-#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)  
-       showString(PSTR("No Ack "));
-        mySerial.print(scan);
- #else
+        showString(PSTR("No Ack "));
         Serial.print(scan); 
- #endif
         showString(PSTR("\r"));
         delay(50); 
       }
   }
   if ((downHigh == 0) || (downLow == 0xFFFF)) return;  // If nobody answers then restart loop
   showString(PSTR("Scan down complete "));
-#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)   
-  mySerial.print(downLow);
-  showString(PSTR("-"));
-  mySerial.println(downHigh);
-#else
   Serial.print(downLow);
   showString(PSTR("-"));
   Serial.println(downHigh);
-#endif
         
  frequency_offset = ( ((upLow + downLow) / 2) + ((((upHigh + downHigh) / 2) - ((upLow + downLow)/ 2)) / 2)   );
   showString(PSTR("Centre frequency offset is "));
-#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)   
-  mySerial.println(frequency_offset);
-#else
   Serial.println(frequency_offset);
-#endif
   delay(50);
   setEEProm();
   while(1) // Nothing more

   }
      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);
#endif
    delay(50);
    downLow = 0xFFFF; 
    downHigh = 0;

byte parameters = 0;

void setup() {
  Serial.begin(SERIAL_BAUD);
  showString(PSTR("\n[RF12tune3.0]\n"));
  delay(5000);  // Startup delay to debounce disconnection
  while (!enough) {
