m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.19k stars 425 forks source link

Fix compiler warning: ambiguitiy between uint16_t and uint8_t argument. #301

Closed stolk closed 1 year ago

stolk commented 1 year ago

When compiling the MFRC522.cpp in the arduino IDE, the compiler will warn about ambiguous functions, as it cannot decide between different versions of the Wire.requestFrom() calls.

By explicitly using an uint8_t for the size parameter, the compiler warning goes away.

Tinyu-Zhao commented 1 year ago

Thank you,Merged!