mirror of
https://github.com/hubaldv/bioz-icd-rs.git
synced 2025-12-05 21:21:18 +00:00
Updated frequency type from f32 to u32.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/target
|
||||
target
|
||||
.DS_Store
|
||||
|
||||
14
src/lib.rs
14
src/lib.rs
@@ -106,17 +106,17 @@ pub enum MeasurementPointSet {
|
||||
}
|
||||
|
||||
impl MeasurementPointSet {
|
||||
pub fn values(&self) -> &'static [f32] {
|
||||
pub fn values(&self) -> &'static [u32] {
|
||||
match self {
|
||||
MeasurementPointSet::Eight => {
|
||||
&[10000.0, 16000.0, 25000.0, 40000.0, 63000.0,
|
||||
100000.0, 160000.0, 200000.0]
|
||||
&[10000, 16000, 25000, 40000, 63000,
|
||||
100000, 160000, 200000]
|
||||
}
|
||||
MeasurementPointSet::Eighteen => {
|
||||
&[100.0, 160.0, 250.0, 400.0, 630.0,
|
||||
1000.0, 1600.0, 2500.0, 4000.0, 6300.0,
|
||||
10000.0, 16000.0, 25000.0, 40000.0, 63000.0,
|
||||
100000.0, 160000.0, 200000.0]
|
||||
&[100, 160, 250, 400, 630,
|
||||
1000, 1600, 2500, 4000, 6300,
|
||||
10000, 16000, 25000, 40000, 63000,
|
||||
100000, 160000, 200000]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user