Define MIN if not defined

This commit is contained in:
lucianom
2020-03-04 22:05:36 +00:00
parent 09a81f5c1f
commit c786b846d0

View File

@@ -71,6 +71,9 @@ extern void device_reboot(void);
#if( 0 < HID_CONTROLS )
#include "xua_hid.h"
#endif
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
unsigned int DFU_mode_active = 0; // 0 - App active, 1 - DFU active