Add more getter functions to the commands module
This commit is contained in:
parent
97f17af790
commit
8d521ff46d
4 changed files with 42 additions and 6 deletions
|
@ -22,6 +22,11 @@ fn main() {
|
|||
|
||||
let state = time::Instant::now();
|
||||
while state.elapsed() < time::Duration::from_secs(5) {
|
||||
println!("");
|
||||
println!(
|
||||
"Coolant Temperature: {:?}",
|
||||
device.get_engine_coolant_temperature()
|
||||
);
|
||||
println!("RPM: {:?}", device.get_rpm());
|
||||
println!("Speed: {:?}", device.get_speed());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue