diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-12-30 01:22:32 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-12-30 01:22:32 +0100 |
| commit | f1f333f8b5d2ca0978300d263198e480d4f829f4 (patch) | |
| tree | 225325b3426681b870e3d287f05a379dc0345802 /src/main.rs | |
| parent | d6f2a4e850a6069fbe741d7b82c4a72b1153f107 (diff) | |
| download | rspsxserial-f1f333f8b5d2ca0978300d263198e480d4f829f4.tar.gz | |
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?
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
