Guest User

Untitled

a guest
Aug 17th, 2019
80
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