Skip to content

Commit

Permalink
Add capt_wait_xready_only
Browse files Browse the repository at this point in the history
  • Loading branch information
missla committed Oct 30, 2015
1 parent bef2cab commit 768976c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/capt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ const struct capt_status_s *capt_get_xstatus_only(void)
{
download_status(CAPT_CHKXSTATUS);
print_status();
/*
if (FLAG(&status, CAPT_FL_JOBSTAT_CHNG)) {
capt_sendrecv(CAPT_CHKJOBSTAT, NULL, 0, NULL, 0);
print_status();
}
*/

return &status;
}

Expand All @@ -122,3 +129,9 @@ void capt_wait_xready(void)
while (FLAG(capt_get_xstatus(), CAPT_FL_BUSY))
sleep(1);
}

void capt_wait_xready_only(void)
{
while (FLAG(capt_get_xstatus_only(), CAPT_FL_BUSY))
sleep(1);
}
1 change: 1 addition & 0 deletions src/capt-status.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ const struct capt_status_s *capt_get_xstatus_only(void);
const struct capt_status_s *capt_get_xstatus(void);
void capt_wait_ready(void);
void capt_wait_xready(void);
void capt_wait_xready_only(void);
2 changes: 1 addition & 1 deletion src/prn_lbp2900.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static struct lbp2900_ops_s lbp3010_ops = {
.wait_user = lbp2900_wait_user,
},
.get_status = capt_get_xstatus_only,
.wait_ready = capt_wait_xready,
.wait_ready = capt_wait_xready_only,
};

register_printer("LBP3010/LBP3018/LBP3050", lbp3010_ops.ops, EXPERIMENTAL);

0 comments on commit 768976c

Please sign in to comment.