add missing default cases

This commit is contained in:
Matthias Ringwald 2021-02-02 15:13:32 +01:00
parent 9d30a519f9
commit f9e215c7dc
3 changed files with 8 additions and 0 deletions

View File

@ -157,6 +157,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
btstack_run_loop_set_timer(&warm_boot_timer, 1000);
btstack_run_loop_add_timer(&warm_boot_timer);
break;
default:
break;
}
}

View File

@ -264,6 +264,9 @@ static void a2dp_sink_packet_handler_internal(uint8_t packet_type, uint16_t chan
case AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION:
a2dp_replace_subevent_id_and_emit_cmd(a2dp_sink_packet_handler_user, packet, size, A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION);
break;
default:
btstack_assert(false);
break;
}
break;

View File

@ -1468,6 +1468,9 @@ void avdtp_config_mpeg_audio_set_sampling_frequency(uint8_t * config, uint16_t s
case 48000:
sampling_frequency_index = 0;
break;
default:
btstack_assert(false);
break;
}
config[1] = (config[1] & 0xC0) | (1 << sampling_frequency_index);
}