mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-21 20:50:55 +01:00
Fix compilation errors in some situations.
This commit is contained in:
parent
5f2730de02
commit
4dbffea9e2
3 changed files with 13 additions and 3 deletions
|
@ -25,9 +25,9 @@
|
|||
#define HID_VERSION_1_11 (0x0111)
|
||||
|
||||
/* HID Class */
|
||||
#define HID_CLASS (3)
|
||||
#define HID_SUBCLASS_NONE (0)
|
||||
#define HID_PROTOCOL_NONE (0)
|
||||
#define BLE_HID_CLASS (3)
|
||||
#define BLE_HID_SUBCLASS_NONE (0)
|
||||
#define BLE_HID_PROTOCOL_NONE (0)
|
||||
|
||||
/* Descriptors */
|
||||
#define HID_DESCRIPTOR (33)
|
||||
|
|
|
@ -17,6 +17,11 @@
|
|||
# include "nimble/nimble/host/include/host/ble_hs.h"
|
||||
# endif
|
||||
|
||||
/**** FIX COMPILATION ****/
|
||||
# undef min
|
||||
# undef max
|
||||
/**************************/
|
||||
|
||||
typedef enum {
|
||||
READ = BLE_GATT_CHR_F_READ,
|
||||
READ_ENC = BLE_GATT_CHR_F_READ_ENC,
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
# include "nimble/nimble/host/include/host/ble_uuid.h"
|
||||
# endif
|
||||
|
||||
/**** FIX COMPILATION ****/
|
||||
# undef min
|
||||
# undef max
|
||||
/**************************/
|
||||
|
||||
# include <string>
|
||||
# include <cstring>
|
||||
|
||||
|
|
Loading…
Reference in a new issue