Skip to content

Commit fddac75

Browse files
Changed marco "swap" to "swapOLED"
I found out the having the macro named "swap" interferes with other system libraries, such as sstream and regex.
1 parent 623db90 commit fddac75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/pong/oled/Edison_OLED.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef EDISON_OLED_H
2727
#define EDISON_OLED_H
2828

29-
#define swap(a, b) { unsigned char t = a; a = b; b = t; }
29+
#define swapOLED(a, b) { unsigned char t = a; a = b; b = t; }
3030

3131
#define BLACK 0
3232
#define WHITE 1

0 commit comments

Comments
 (0)