mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
add missing default cases
This commit is contained in:
parent
9d30a519f9
commit
f9e215c7dc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user