Skip to content

#if bug #1468

Closed
Closed
#if bug#1468
@lestofante

Description

@lestofante
#ifdef __AVR_ATtinyX5__
const byte LED_PIN = 3;   // gamba 2
const byte RECV_PIN = 1;  // gamba 6
#else
const byte LED_PIN = 3;
const byte RECV_PIN = 10;
#endif

give error. declaring a variable before #if resolve the problem.

bug found by nid69ita

Metadata

Metadata

Assignees

Labels

Component: IDEThe Arduino IDEComponent: PreprocessorThe Arduino sketch preprocessor converts .ino files into C++ code before compilation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions