]> granicus.if.org Git - esp-idf/commitdiff
examples/bluetooth: add fallthrough annotations
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 29 Aug 2018 04:59:30 +0000 (12:59 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 29 Aug 2018 06:40:28 +0000 (14:40 +0800)
examples/bluetooth/a2dp_gatts_coex/main/bt_app_av.c
examples/bluetooth/a2dp_sink/main/bt_app_av.c

index c015bfa621f01bacc21336f533845391a1bd53fc..2bf069da2c4c404fe28f44fd61e6762cbd1db4a6 100644 (file)
@@ -79,6 +79,7 @@ void bt_app_rc_ct_cb(esp_avrc_ct_cb_event_t event, esp_avrc_ct_cb_param_t *param
     switch (event) {
     case ESP_AVRC_CT_METADATA_RSP_EVT:
         bt_app_alloc_meta_buffer(param);
+        /* fall through */
     case ESP_AVRC_CT_CONNECTION_STATE_EVT:
     case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT:
     case ESP_AVRC_CT_CHANGE_NOTIFY_EVT:
index 64d554fd91669a58756468a6b0b9ec90fc7a0b47..af67c5aa987c1a5eebf44f5386005d5ca775d2cf 100644 (file)
@@ -75,6 +75,7 @@ void bt_app_rc_ct_cb(esp_avrc_ct_cb_event_t event, esp_avrc_ct_cb_param_t *param
     switch (event) {
     case ESP_AVRC_CT_METADATA_RSP_EVT:
         bt_app_alloc_meta_buffer(param);
+        /* fall through */
     case ESP_AVRC_CT_CONNECTION_STATE_EVT:
     case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT:
     case ESP_AVRC_CT_CHANGE_NOTIFY_EVT: