From 7bddf7353eb3fb1df3e05898892741c4ce19e38e Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Tue, 20 Dec 2011 19:16:43 +0400 Subject: [PATCH] make LPT reset function to work properly --- yasnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnd.c b/yasnd.c index f63cc83..d040c9e 100644 --- a/yasnd.c +++ b/yasnd.c @@ -205,7 +205,7 @@ void reset_pin(int pin_num) log_event("Error: incorrent LPT pin number"); return; } - int pins = 2<<(pin_num-1); + int pins = 1<<(pin_num); if (ioperm (lpt_port, 3, 1)) { log_event("Error: LPT port access error");