Updated frequency type from f32 to u32.

This commit is contained in:
2025-10-15 18:17:52 +02:00
parent 799bcf49b5
commit f9f6d325b0
2 changed files with 9 additions and 8 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
/target target
.DS_Store

View File

@@ -106,17 +106,17 @@ pub enum MeasurementPointSet {
} }
impl MeasurementPointSet { impl MeasurementPointSet {
pub fn values(&self) -> &'static [f32] { pub fn values(&self) -> &'static [u32] {
match self { match self {
MeasurementPointSet::Eight => { MeasurementPointSet::Eight => {
&[10000.0, 16000.0, 25000.0, 40000.0, 63000.0, &[10000, 16000, 25000, 40000, 63000,
100000.0, 160000.0, 200000.0] 100000, 160000, 200000]
} }
MeasurementPointSet::Eighteen => { MeasurementPointSet::Eighteen => {
&[100.0, 160.0, 250.0, 400.0, 630.0, &[100, 160, 250, 400, 630,
1000.0, 1600.0, 2500.0, 4000.0, 6300.0, 1000, 1600, 2500, 4000, 6300,
10000.0, 16000.0, 25000.0, 40000.0, 63000.0, 10000, 16000, 25000, 40000, 63000,
100000.0, 160000.0, 200000.0] 100000, 160000, 200000]
} }
} }
} }