From 77ff5a1c55998e60a380f35431d0f71c11773d61 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 17 Dec 2017 03:19:26 +0100 Subject: [PATCH] fix typo --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 6e5d4e0845..85961e64d7 100644 --- a/util.h +++ b/util.h @@ -26,7 +26,7 @@ #include // Statement expressions make these macros side-effect safe -#define MIN(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; }) +#define MIN(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a < _b ? _a : _b; }) #define MAX(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; }) void delay(uint32_t wait);