Skip to content

Commit

Permalink
update firmware to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjmeyer committed Jan 22, 2024
1 parent ec3199d commit 79b1b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified src/firmware/v2
Binary file not shown.
3 changes: 1 addition & 2 deletions src/scope/data_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl ScopeCommand for DataRequest {
}

fn fill_tx_buffer(&self, usb_buf: &mut [u8; 64]) -> Result<(), Box<dyn Error>> {
let samples_between_records: u32 = (400_000.0 / self.sample_rate_hz) as u32;
let samples_between_records: u32 = (2_000_000.0 / self.sample_rate_hz) as u32;

let total_samples = *self.remaining_samples.read().unwrap();
trace!("Requesting {} samples with {} samples between records", total_samples, samples_between_records);
Expand Down Expand Up @@ -273,7 +273,6 @@ impl DataRequest {
if channel.is_on {
let data = input_buffer.pop_front().unwrap();
sample.data[ch] = Some(channel.voltage_from_measurement(data));
trace!("Ch{}: ADCData: {} Vi: {}", ch+1, data, channel.voltage_from_measurement(data));
}
}
self.sender.send(sample).unwrap();
Expand Down

0 comments on commit 79b1b24

Please sign in to comment.