mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-02 05:32:34 -04:00
Tweak BasebandConfiguration constructors to avoid surprise type conversions.
This commit is contained in:
parent
f369885062
commit
83bf2a9a36
2 changed files with 8 additions and 7 deletions
|
@ -126,11 +126,7 @@ void ReceiverModel::enable() {
|
|||
void ReceiverModel::disable() {
|
||||
/* TODO: This is a dumb hack to stop baseband from working so hard. */
|
||||
BasebandConfigurationMessage message {
|
||||
.configuration = {
|
||||
.mode = -1,
|
||||
.sampling_rate = 0,
|
||||
.decimation_factor = 1,
|
||||
}
|
||||
.configuration = { },
|
||||
};
|
||||
shared_memory.baseband_queue.push(message);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue