avoid clippy better
This commit is contained in:
parent
016323c94d
commit
41f6d971c3
|
@ -94,9 +94,9 @@ const APP: () = {
|
||||||
* 2; // Full scale assuming the 2f component is gone.
|
* 2; // Full scale assuming the 2f component is gone.
|
||||||
|
|
||||||
// Convert to DAC data.
|
// Convert to DAC data.
|
||||||
for i in 0..dac_samples[1].len() {
|
for (i, data) in DAC_SEQUENCE.iter().enumerate() {
|
||||||
// DAC0 always generates a fixed sinusoidal output.
|
// DAC0 always generates a fixed sinusoidal output.
|
||||||
dac_samples[0][i] = DAC_SEQUENCE[i] as u16 ^ 0x8000;
|
dac_samples[0][i] = *data as u16 ^ 0x8000;
|
||||||
dac_samples[1][i] = (output.arg() >> 16) as u16 ^ 0x8000;
|
dac_samples[1][i] = (output.arg() >> 16) as u16 ^ 0x8000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue