make LPT reset function to work properly
This commit is contained in:
2
yasnd.c
2
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");
|
||||
|
Reference in New Issue
Block a user