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 <[email protected]> Acked-by: Stefan Tauner <[email protected]> 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; _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
