1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

[H7][LIB][USB] usbd_def: disable insane defs of MIN and MAX

This commit is contained in:
jflyper 2020-01-19 05:33:19 +09:00
parent 8d74d61b70
commit a88bc07769

View file

@ -319,8 +319,9 @@ __STATIC_INLINE uint16_t SWAPBYTE(uint8_t *addr)
#define LOBYTE(x) ((uint8_t)((x) & 0x00FFU))
#define HIBYTE(x) ((uint8_t)(((x) & 0xFF00U) >> 8U))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
// It's insane to define these here.
//#define MIN(a, b) (((a) < (b)) ? (a) : (b))
//#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#if defined ( __GNUC__ )