Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Interpret the sensor data as a `sensor_temp_raw_data` struct that contains raw temp.
- let mut raw = fill_zero!(sensor_temp_raw_data);
- let rc = unsafe {
- sensor::get_temp_raw_data(sensor_data, &mut raw)
- };
- // Return the raw temperature.
- SensorValueType::Uint(raw.strd_temp_raw) // Raw Temperature in integer (0 to 4095)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement