Fixed preprocessor check for AVR