summaryrefslogtreecommitdiffstats
path: root/pony_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'pony_spi.c')
-rw-r--r--pony_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pony_spi.c b/pony_spi.c
index 7875200de..101751f2f 100644
--- a/pony_spi.c
+++ b/pony_spi.c
@@ -116,7 +116,7 @@ int pony_spi_init(void)
arg = extract_programmer_param("dev");
if (arg && strlen(arg)) {
sp_fd = sp_openserport(arg, 9600);
- if (sp_fd < 0) {
+ if (sp_fd == SER_INV_FD) {
free(arg);
return 1;
}