diff --git a/guest_rust/src/lib.rs b/guest_rust/src/lib.rs index 0ad481c..8830848 100644 --- a/guest_rust/src/lib.rs +++ b/guest_rust/src/lib.rs @@ -186,7 +186,7 @@ fn main2() -> Result<()> { denominator: *ratio.denom() as u32, }); println!("setting sampling rate to {:?}", value); - sensor.set_property(wasi::sensor::property::PropertyKey::SamplingRate, &value)?; + sensor.set_property(wasi::sensor::property::PropertyKey::SamplingRate, value)?; // confirm the result let value = sensor.get_property(wasi::sensor::property::PropertyKey::SamplingRate)?; println!("sensor sampling rate {:?}", value); diff --git a/sensing.md b/sensing.md index a27be68..7bb987f 100644 --- a/sensing.md +++ b/sensing.md @@ -112,12 +112,6 @@
numerator
: u32
denominator
: u32
record exposure
mode
: string
Mode of exposure. -
enum property-key
variant property-value