Skip to content

Correct ATmega328P macro#10540

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-1.1.xfrom
per1234:fix-atmega328p-macro
Apr 27, 2018
Merged

Correct ATmega328P macro#10540
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-1.1.xfrom
per1234:fix-atmega328p-macro

Conversation

@per1234
Copy link
Contributor

@per1234 per1234 commented Apr 27, 2018

Description

The correct MCU-specific macro for ATmega328P is __AVR_ATmega328P__, rather than __AVR_ATmega328p__, as was previously in the code.

Benefits

This bug caused a misleading error to be displayed when compiling for ATmega328P:

fastio.h:57: error: #error "Pins for this chip not defined in Arduino.h! If you have a working pins definition, please contribute!"

This would lead someone to believe the problem is that a pins definition for the microcontroller is required when actually a pins definition already exists but ATmega328P is still not supported.

After this fix compilation will still fail for ATmega328P, but without the misleading error.

The correct MCU-specific macro for ATmega328P is __AVR_ATmega328P__, rather than __AVR_ATmega328p__, as was previously in the code.
@thinkyhead thinkyhead merged commit 3550494 into MarlinFirmware:bugfix-1.1.x Apr 27, 2018
thinkyhead added a commit that referenced this pull request Apr 27, 2018
…as with #10540

Co-Authored-By: per1234 <per1234@users.noreply.github.com>
thinkyhead pushed a commit that referenced this pull request Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants