Fixing semantics

This commit is contained in:
Ryan Summers 2020-12-02 18:08:49 +01:00
parent 677d017c3c
commit f4a4357396
2 changed files with 3 additions and 4 deletions

View File

@ -645,8 +645,7 @@ const APP: () = {
hrtimer hrtimer
}; };
let (mut qspi, config) = ad9959.freeze(); let (qspi, config) = ad9959.freeze();
qspi.start_stream().unwrap();
DdsOutput::new(qspi, io_update_trigger, config) DdsOutput::new(qspi, io_update_trigger, config)
}; };

View File

@ -28,10 +28,10 @@ impl DdsOutput {
io_update_trigger: HighResTimerE, io_update_trigger: HighResTimerE,
dds_config: DdsConfig, dds_config: DdsConfig,
) -> Self { ) -> Self {
qspi.start_stream(); qspi.start_stream().unwrap();
Self { Self {
config: dds_config, config: dds_config,
_qspi, _qspi: qspi,
io_update_trigger, io_update_trigger,
} }
} }