diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-11-30 16:46:45 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-11-30 16:46:45 +0000 |
commit | 6d3d22f757a76f442a3c387ce7ffbf2b6bbbccbb (patch) | |
tree | 5ff0aa18b77638d51e0870ca1f1229fd393809f0 /buspirate_spi.c | |
parent | 34f616b534b9e812c3fddffd54b5f76abe8a7d59 (diff) | |
download | flashrom-6d3d22f757a76f442a3c387ce7ffbf2b6bbbccbb.tar.gz |
Fix sp_openserport users on Windows.
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1627 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'buspirate_spi.c')
-rw-r--r-- | buspirate_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buspirate_spi.c b/buspirate_spi.c index 92d7fb4..55d4133 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -40,7 +40,7 @@ static int buspirate_serialport_setup(char *dev) { /* 115200bps, 8 databits, no parity, 1 stopbit */ sp_fd = sp_openserport(dev, 115200); - if (sp_fd < 0) + if (sp_fd == SER_INV_FD) return 1; return 0; } |