Skip to content

Commit d789ecf

Browse files
committed
Replace TOGGLE with CHANGE
Fixes #4 TOGGLE is not part of Arduino APIs so should not be defined at platform level
1 parent 0c36f1a commit d789ecf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cores/arduino/Arduino.h

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
extern "C"{
3131
#endif
3232

33-
#define TOGGLE 0x2
34-
#define PINCTRL_OFFSET 0x10
35-
3633
/* Analog reference options */
3734

3835
/* Change in mega4809: two places to define analog reference

cores/arduino/wiring_digital.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void digitalWrite(uint8_t pin, PinStatus val)
164164
if (val == LOW) { /* If LOW */
165165
port->OUTCLR = bit_mask;
166166

167-
} else if (val == TOGGLE) { /* If TOGGLE */
167+
} else if (val == CHANGE) { /* If TOGGLE */
168168
port->OUTTGL = bit_mask;
169169
/* If HIGH OR > TOGGLE */
170170
} else {

0 commit comments

Comments
 (0)