make LPT reset function to work properly

This commit is contained in:
Sergey Popov 2011-12-20 19:16:43 +04:00
parent 71910fa888
commit 7bddf7353e

View File

@ -205,7 +205,7 @@ void reset_pin(int pin_num)
log_event("Error: incorrent LPT pin number"); log_event("Error: incorrent LPT pin number");
return; return;
} }
int pins = 2<<(pin_num-1); int pins = 1<<(pin_num);
if (ioperm (lpt_port, 3, 1)) if (ioperm (lpt_port, 3, 1))
{ {
log_event("Error: LPT port access error"); log_event("Error: LPT port access error");