Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement