forked from M-Labs/ionpak-thermostat
average more IC samples
This commit is contained in:
parent
ba1482db43
commit
dc4534eb00
|
@ -2,7 +2,7 @@ use board;
|
||||||
|
|
||||||
pub struct Electrometer {
|
pub struct Electrometer {
|
||||||
range: board::ElectrometerRange,
|
range: board::ElectrometerRange,
|
||||||
ic_buffer: [f32; 16],
|
ic_buffer: [f32; 64],
|
||||||
ic_buffer_count: usize,
|
ic_buffer_count: usize,
|
||||||
last_ic: Option<f32>
|
last_ic: Option<f32>
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ impl Electrometer {
|
||||||
pub const fn new() -> Electrometer {
|
pub const fn new() -> Electrometer {
|
||||||
Electrometer {
|
Electrometer {
|
||||||
range: board::ElectrometerRange::Med,
|
range: board::ElectrometerRange::Med,
|
||||||
ic_buffer: [0.0; 16],
|
ic_buffer: [0.0; 64],
|
||||||
ic_buffer_count: 0,
|
ic_buffer_count: 0,
|
||||||
last_ic: None
|
last_ic: None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue