diff options
Diffstat (limited to 'sys/dev/ppbus/ppi.c')
-rw-r--r-- | sys/dev/ppbus/ppi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c index bd0a638..0143654 100644 --- a/sys/dev/ppbus/ppi.c +++ b/sys/dev/ppbus/ppi.c @@ -464,10 +464,10 @@ ppiwrite(dev_t dev, struct uio *uio, int ioflag) /* we have to be peripheral to be able to send data, so * wait for the appropriate state */ - if (ppb->state < PPB_PERIPHERAL_NEGOCIATION) + if (ppb_1284_get_state(ppbus) < PPB_PERIPHERAL_NEGOCIATION) ppb_1284_terminate(ppbus); - while (ppb->state != PPB_PERIPHERAL_IDLE) { + while (ppb_1284_get_state(ppbus) != PPB_PERIPHERAL_IDLE) { /* XXX should check a variable before sleeping */ #ifdef DEBUG_1284 printf("s"); |