remove compile errors from ATmega code