Skip to content

Commit

Permalink
fix: typecasts break ESP8266 min, constrain macros
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Feb 17, 2024
1 parent 4bf4a1a commit 5f629d3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Platforms/ESP8266/ESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#include <Arduino.h>
#include <SPI.h>

// Redefine macros with AVR version
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(x) ((x)>0?(x):-(x))
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))

// Don't use fallback settings
#define PLATFORM_SUPPORTED

Expand Down

0 comments on commit 5f629d3

Please sign in to comment.