mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 18:19:08 -04:00
Move BasebandConfiguration message handling into baseband thread.
This commit is contained in:
parent
fd612dc207
commit
c9f9d97d07
3 changed files with 8 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue