Move BasebandConfiguration message handling into baseband thread.

This commit is contained in:
Jared Boone 2016-01-03 11:49:01 -08:00
parent fd612dc207
commit c9f9d97d07
3 changed files with 8 additions and 12 deletions

View file

@ -69,8 +69,12 @@ void BasebandThread::set_configuration(const BasebandConfiguration& new_configur
}
void BasebandThread::on_message(const Message* const message) {
if( baseband_processor ) {
baseband_processor->on_message(message);
if( message->id == Message::ID::BasebandConfiguration ) {
set_configuration(reinterpret_cast<const BasebandConfigurationMessage*>(message)->configuration);
} else {
if( baseband_processor ) {
baseband_processor->on_message(message);
}
}
}