Calculate current_abs_max_tec_i from all channels #119
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "atse/thermostat:generalise-fan-channel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instead of picking channels 0 and 1. Helps to generalise for more than 2 channels.
@ -566,1 +564,3 @@
|a, b| a.partial_cmp(b).unwrap_or(core::cmp::Ordering::Equal))
(0..CHANNELS)
.map(|channel| self.get_tec_i(channel).abs())
.max_by(|a, b| a.partial_cmp(b).unwrap_or(core::cmp::Ordering::Equal))
Quite curious though, is it internally same efficiency? I remember in some languages it's not in case of streams
It doesn't matter here. The bottleneck will be
self.get_tec_i(channel)
which blocks until the single conversion Adc readings return.