Skip to content
Snippets Groups Projects
Commit e33c40eb authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Initialize sp_fd and fix baud rate setting on windows


Corresponding to flashrom svn r1669.

Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
parent 363fd7e8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment