1
0
mirror of https://github.com/prirun/p50em.git synced 2026-03-09 11:56:22 +00:00

devpnc: handle case -2 (shutdown) to avoid "bad func in devpnc" error

This commit is contained in:
Jim
2011-11-09 14:49:21 -05:00
parent 6f8555e3f5
commit 4b75d003bd

View File

@@ -819,6 +819,9 @@ int devpnc (int class, int func, int device) {
switch (class) {
case -2:
break;
case -1:
if (nport <= 0) {
fprintf(stderr, "-nport is zero, PNC not started\n");