Skip to content

Commit

Permalink
Send CAPT_JOB_END after page completed
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaliy Tomin <[email protected]>
Signed-off-by: Alexey Galakhov <[email protected]>
  • Loading branch information
HighwayStar authored and agalakhov committed Sep 24, 2013
1 parent 6848d01 commit b5ad910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prn_lbp2900.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ static bool lbp2900_page_epilogue(struct printer_state_s *state, const struct pa
static void lbp2900_job_epilogue(struct printer_state_s *state)
{
uint8_t buf[2] = { LO(state->ipage), HI(state->ipage) };
capt_sendrecv(CAPT_JOB_END, buf, 2, NULL, 0);
while (1) {
if (capt_get_xstatus()->page_out >= state->ipage)
if (capt_get_xstatus()->page_completed >= state->ipage)
break;
sleep(1);
}
capt_sendrecv(CAPT_JOB_END, buf, 2, NULL, 0);
}

static void lbp2900_page_setup(struct printer_state_s *state,
Expand Down

0 comments on commit b5ad910

Please sign in to comment.