summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/system.h b/firmware/system.h
index fdc472f5e2..7f7305f737 100644
--- a/firmware/system.h
+++ b/firmware/system.h
@@ -34,7 +34,7 @@
#endif
#ifndef MAX
-#define MAX(a, b) MIN(b,a)
+#define MAX(a, b) (((a)>(b))?(a):(b))
#endif
#ifdef LITTLE_ENDIAN