Skip to content

Commit 5c665b4

Browse files
committed
update macro names in bluefruit
1 parent 4f2c5bf commit 5c665b4

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

protocol/bluefruit/bluefruit.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,25 @@ static void send_system(uint16_t data)
150150
+-------------------------------------+-------+
151151
*/
152152
#define CONSUMER2BLUEFRUIT(usage) \
153-
(usage == AUDIO_MUTE ? 0x0000 : \
154-
(usage == AUDIO_VOL_UP ? 0x1000 : \
155-
(usage == AUDIO_VOL_DOWN ? 0x2000 : \
156-
(usage == TRANSPORT_NEXT_TRACK ? 0x0002 : \
157-
(usage == TRANSPORT_PREV_TRACK ? 0x0004 : \
158-
(usage == TRANSPORT_STOP ? 0x0010 : \
159-
(usage == TRANSPORT_STOP_EJECT ? 0x0000 : \
160-
(usage == TRANSPORT_PLAY_PAUSE ? 0x4000 : \
161-
(usage == AL_CC_CONFIG ? 0x0000 : \
162-
(usage == AL_EMAIL ? 0x0000 : \
163-
(usage == AL_CALCULATOR ? 0x0000 : \
164-
(usage == AL_LOCAL_BROWSER ? 0x0000 : \
165-
(usage == AC_SEARCH ? 0x0400 : \
166-
(usage == AC_HOME ? 0x0100 : \
167-
(usage == AC_BACK ? 0x0000 : \
168-
(usage == AC_FORWARD ? 0x0000 : \
169-
(usage == AC_STOP ? 0x0000 : \
170-
(usage == AC_REFRESH ? 0x0000 : \
171-
(usage == AC_BOOKMARKS ? 0x0000 : 0)))))))))))))))))))
153+
(usage == AUDIO_MUTE ? 0x0000 : \
154+
(usage == AUDIO_VOL_UP ? 0x1000 : \
155+
(usage == AUDIO_VOL_DOWN ? 0x2000 : \
156+
(usage == TRANSPORT_NEXT_TRACK ? 0x0002 : \
157+
(usage == TRANSPORT_PREV_TRACK ? 0x0004 : \
158+
(usage == TRANSPORT_STOP ? 0x0010 : \
159+
(usage == TRANSPORT_STOP_EJECT ? 0x0000 : \
160+
(usage == TRANSPORT_PLAY_PAUSE ? 0x4000 : \
161+
(usage == APPLAUNCH_CC_CONFIG ? 0x0000 : \
162+
(usage == APPLAUNCH_EMAIL ? 0x0000 : \
163+
(usage == APPLAUNCH_CALCULATOR ? 0x0000 : \
164+
(usage == APPLAUNCH_LOCAL_BROWSER ? 0x0000 : \
165+
(usage == APPCONTROL_SEARCH ? 0x0400 : \
166+
(usage == APPCONTROL_HOME ? 0x0100 : \
167+
(usage == APPCONTROL_BACK ? 0x0000 : \
168+
(usage == APPCONTROL_FORWARD ? 0x0000 : \
169+
(usage == APPCONTROL_STOP ? 0x0000 : \
170+
(usage == APPCONTROL_REFRESH ? 0x0000 : \
171+
(usage == APPCONTROL_BOOKMARKS ? 0x0000 : 0)))))))))))))))))))
172172

173173
static void send_consumer(uint16_t data)
174174
{

0 commit comments

Comments
 (0)