Returns the cached value. No hardware I/O.
(&self)
| 445 | |
| 446 | /// Returns the cached value. No hardware I/O. |
| 447 | pub fn value(&self) -> f32 { |
| 448 | *self.value.lock().unwrap() |
| 449 | } |
| 450 | |
| 451 | /// Returns the bool interpretation of a Toggle feature's cached value. |
| 452 | /// Panics if the value is not exactly 0.0 or 1.0 as a sanity check; |
no outgoing calls
no test coverage detected