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");