From c4e86052e35d68e2463693f7ff6531f71e905eae Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 1 May 2017 12:59:58 +0200 Subject: [PATCH] h4: use enum for EHCILL message types - fixes compile error when used as case labels --- src/hci_transport_h4.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hci_transport_h4.c b/src/hci_transport_h4.c index 422f5e198..8cae1110d 100644 --- a/src/hci_transport_h4.c +++ b/src/hci_transport_h4.c @@ -58,10 +58,12 @@ #ifdef ENABLE_EHCILL // eHCILL commands -static const uint8_t EHCILL_GO_TO_SLEEP_IND = 0x030; -static const uint8_t EHCILL_GO_TO_SLEEP_ACK = 0x031; -static const uint8_t EHCILL_WAKE_UP_IND = 0x032; -static const uint8_t EHCILL_WAKE_UP_ACK = 0x033; +enum EHCILL_MESSAGES { + EHCILL_GO_TO_SLEEP_IND = 0x030, + EHCILL_GO_TO_SLEEP_ACK = 0x031, + EHCILL_WAKE_UP_IND = 0x032, + EHCILL_WAKE_UP_ACK = 0x033, +}; static int hci_transport_h4_ehcill_outgoing_packet_ready(void); static void hci_transport_h4_echill_send_wakeup_ind(void);