Skip to content

Commit

Permalink
Merge pull request agalakhov#42 from missla/button
Browse files Browse the repository at this point in the history
Add a new command for paper button
  • Loading branch information
agalakhov authored Apr 9, 2022
2 parents 2a92f28 + 9081a2e commit fdc3315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/capt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ static inline char bit(enum capt_flags flag)

static void print_status(void)
{
fprintf(stderr, "DEBUG: CAPT: printer status P1=%c P2=%c B=%c B1=%c nE=%c\n",
fprintf(stderr, "DEBUG: CAPT: printer status P1=%c P2=%c B=%c B0=%c B1=%c nE=%c\n",
bit(CAPT_FL_NOPAPER1), bit(CAPT_FL_NOPAPER2),
bit(CAPT_FL_BUTTON_ON),
bit(CAPT_FL_BUTTON), bit(CAPT_FL_BUTTON1),
bit(CAPT_FL_nERROR)
);
Expand Down
1 change: 1 addition & 0 deletions src/capt-status.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ enum capt_flags
/* status[3] */
CAPT_FL_POWERUP1 = _FL(3, 12),
/* status[4] */
CAPT_FL_BUTTON_ON = _FL(4, 0),
/* status[5] */
/* status[6] */
};
Expand Down

0 comments on commit fdc3315

Please sign in to comment.