lock-in: use same method for batch_index branching in both instances
This commit is contained in:
parent
bae295140d
commit
31d23a3e0c
@ -165,8 +165,9 @@ impl Lockin {
|
||||
frequency = self.last_frequency.unwrap();
|
||||
}
|
||||
None => {
|
||||
if self.batch_index < ADC_BATCHES as u32 - 1 {
|
||||
self.batch_index += 1;
|
||||
if self.batch_index == ADC_BATCHES as u32 {
|
||||
} else {
|
||||
self.batch_index = 0;
|
||||
}
|
||||
return Err("insufficient timestamps");
|
||||
|
Loading…
Reference in New Issue
Block a user