min__ - jimaobian/DFRobotWikiCn GitHub Wiki

#define min(a, b) ((a)<(b)?(a):(b))

最小值

取两者之间最小值. 例如:

sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100
                             // ensuring that it never gets above 100.
⚠️ **GitHub.com Fallback** ⚠️