[flashrom] [commit] r1669 - trunk
repository service
svn at flashrom.org
Sat Apr 13 02:29:33 CEST 2013
Author: stefanct
Date: Sat Apr 13 02:29:30 2013
New Revision: 1669
URL: http://flashrom.org/trac/flashrom/changeset/1669
Log:
Initialize sp_fd and fix baud rate setting on windows.
Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
Modified:
trunk/serial.c
Modified: trunk/serial.c
==============================================================================
--- trunk/serial.c Sun Apr 7 15:08:30 2013 (r1668)
+++ trunk/serial.c Sat Apr 13 02:29:30 2013 (r1669)
@@ -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 @@
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;
More information about the flashrom
mailing list