From f1f333f8b5d2ca0978300d263198e480d4f829f4 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Sun, 30 Dec 2018 01:22:32 +0100 Subject: app.rs now configures a given serial device with a given baud rate. If not defined, 4800bps are set by default, but this will be surely changed in the future. I was messing up pretty badly with command line arguments, so they have been declared as constants in cmdline.rs, whereas CMD_LINE_ARGS is now private. Uncommented "extern crate serial". Question: why does need to be included on main? --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 3c49926..71870ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,4 @@ -//~ extern crate serial; -//~ use serial::prelude::*; +extern crate serial; mod cmdline; mod app; -- cgit v1.2.3