You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output? What do you see instead?
While compiling on an ATmega64M1 uC, the line "#error Unsupported CPU in avr_can.h" is reported by the compiler and compiling stops. As there was a match I do not expect to #else lines to be recognized.
What version of the product are you using? On what operating system?
Arduino IDE 1.6.7
Windows 7
Please provide any additional information below.
Additional testing, it seems the #if ... statements are being processed correctly, in that the ATmega64M1 uC was recognized and CANMN_QUANITY was set to 6. But then processing continues on and picked up the #error line.
And it seems it is only the #error that is incorrectly picked up. If I place other directives (e.g., some test #defines) in the #else area, processing seems to work correctly.
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
Using the following test sketch:
`
if defined(AVR_AT90CAN32) || \
elif defined(AVR_ATmega32C1) || \
else
endif
void setup() {
Serial.begin(115200);
Serial.println(CANMB_QUANTITY);
}
void loop() {
}
`
What is the expected output? What do you see instead?
While compiling on an ATmega64M1 uC, the line "#error Unsupported CPU in avr_can.h" is reported by the compiler and compiling stops. As there was a match I do not expect to #else lines to be recognized.
What version of the product are you using? On what operating system?
Arduino IDE 1.6.7
Windows 7
Please provide any additional information below.
Additional testing, it seems the #if ... statements are being processed correctly, in that the ATmega64M1 uC was recognized and CANMN_QUANITY was set to 6. But then processing continues on and picked up the #error line.
And it seems it is only the #error that is incorrectly picked up. If I place other directives (e.g., some test #defines) in the #else area, processing seems to work correctly.
The text was updated successfully, but these errors were encountered: