Max__ - jimaobian/DFRobotWikiCn GitHub Wiki

#define max(a, b) ((a)>(b)?(a):(b))

最大值

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

sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
                           // (effectively ensuring that it is at least 20)