diff --git a/src/capt-status.c b/src/capt-status.c index 03fdc59..6a11c34 100644 --- a/src/capt-status.c +++ b/src/capt-status.c @@ -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) ); diff --git a/src/capt-status.h b/src/capt-status.h index 856c157..41487a2 100644 --- a/src/capt-status.h +++ b/src/capt-status.h @@ -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] */ };