11 lines
212 B
Rust
11 lines
212 B
Rust
|
use gps_parser;
|
||
|
|
||
|
fn main() {
|
||
|
let mut gps_parser = gps_parser::GpsParser::new("/dev/ttyACM0");
|
||
|
loop {
|
||
|
if let Ok(res) = gps_parser.parse_nmea() {
|
||
|
println!("{:?}",res);
|
||
|
}
|
||
|
}
|
||
|
}
|