m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

In_espi min() conflict with std::bitset #132

Closed Sepp62 closed 1 year ago

Sepp62 commented 3 years ago

"min" macro in In_espi.h conflicts with std::bitset

See also: https://github.com/m5stack/M5StickC/issues/103

Workaround:

undef min

include <%bitset> // remove percent sign, cannot insert text in these parentheses

...

Tinyu-Zhao commented 1 year ago

Fixed https://github.com/m5stack/M5StickC/commit/9b92d2781a0e3f6a2d8186884066bd2a1bbf981a