Skip to content

Commit

Permalink
Add page_received status to track pages already printed
Browse files Browse the repository at this point in the history
  • Loading branch information
missla committed Oct 30, 2015
1 parent b1849a8 commit bef2cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/capt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static void decode_status(const uint8_t *s, size_t size)
status.page_printing = WORD(s[16], s[17]);
status.page_out = WORD(s[18], s[19]);
status.page_completed = WORD(s[20], s[21]);
status.page_received = WORD(s[34], s[35]);

status.status[4] = WORD(s[24], s[25]);

Expand Down
1 change: 1 addition & 0 deletions src/capt-status.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ struct capt_status_s {
uint16_t page_printing;
uint16_t page_out;
uint16_t page_completed;
uint16_t page_received;
};

#define _FL(s, b) ((s << 16) | (1 << b))
Expand Down

0 comments on commit bef2cab

Please sign in to comment.