 ///  All right reserved.
 /// Connect Tiny84 PA2 to USB-BUB TXD for serial input to sketch.    // Jeenode DIO2
 /// 9600 or 38400 at present.
+
+#if SERIAL_BAUD == 9600
+#define BITDELAY 54      // 9k6 @ 8MHz, 19k2 @16MHz
+#endif
+#if SERIAL_BAUD == 38400
+#define BITDELAY 11     // 38k4 @ 8MHz, 76k8 @16MHz
+#endif
 
 #define MAX_NODES 14
 #define _receivePin 8

#define VERSION "\n[RF12demo.12]"         // keep in sync with the above

#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny44__)
#define TINY 1
#define SERIAL_BAUD 38400   // do not change
#define DATAFLASH   0       // do not change
#undef  LED_PIN             // do not change
#else
#define TINY 0
#define SERIAL_BAUD 57600   // adjust as needed
#define DATAFLASH   16      // set to 0 for non-JeeLinks, else 4/8/16 (Mbit)
#define LED_PIN     9       // activity LED, comment out to disable

  addCh(msg, '0' + v % 10);
}

static void loadConfig () {
  eeprom_read_block(&config, RF12_EEPROM_ADDR, sizeof config);
}

static void saveConfig () {
  config.format = MAJOR_VERSION;
  config.crc = ~0;
