diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-04-13 00:29:30 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-04-13 00:29:30 +0000 |
commit | e33c40eb7db5dc16763cd7c245578a968306a757 (patch) | |
tree | a12679980409c55cddbc2451b78fd348ae20347e | |
parent | 363fd7e827e3b630f916f9d2bdda262180274789 (diff) | |
download | flashrom-e33c40eb7db5dc16763cd7c245578a968306a757.tar.gz flashrom-e33c40eb7db5dc16763cd7c245578a968306a757.tar.bz2 flashrom-e33c40eb7db5dc16763cd7c245578a968306a757.zip |
Initialize sp_fd and fix baud rate setting on windows
Corresponding to flashrom svn r1669.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-rw-r--r-- | serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ #include "flash.h" #include "programmer.h" -fdtype sp_fd; +fdtype sp_fd = SER_INV_FD; void __attribute__((noreturn)) sp_die(char *msg) { @@ -189,7 +189,7 @@ fdtype sp_openserport(char *dev, unsigned int baud) goto out_close; } const struct baudentry *entry = round_baud(baud); - dcb.BaudRate = entry->baud; + dcb.BaudRate = entry->flag; dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT; |