a guest Aug 17th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //  Interpret the sensor data as a `sensor_temp_raw_data` struct that contains raw temp.
  2. let mut raw = fill_zero!(sensor_temp_raw_data);
  3. let rc = unsafe {
  4.     sensor::get_temp_raw_data(sensor_data, &mut raw)
  5. };
  6. //  Return the raw temperature.
  7. SensorValueType::Uint(raw.strd_temp_raw)  //  Raw Temperature in integer (0 to 4095)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand