added #ifdefs to separate the avrdude code