Skip to content

Commit

Permalink
Fix compilation errors in some situations.
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Nov 26, 2024
1 parent a4043e3 commit 4a57432
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HIDTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/NimBLELocalValueAttribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions src/NimBLEUUID.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
# include "nimble/nimble/host/include/host/ble_uuid.h"
# endif

/**** FIX COMPILATION ****/
# undef min
# undef max
/**************************/

# include <string>
# include <cstring>

Expand Down

0 comments on commit 4a57432

Please sign in to comment.