summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2017-12-07 13:44:17 -0500
committerSolomon Peachy <pizza@shaftnet.org>2017-12-07 13:44:17 -0500
commit5163e01cc705ae61656d295e0e973bec0a6893af (patch)
tree565db931b0482479f9f4aca94b5aa7ab06f61af0
parentad40d8893d887c4c83d8ca32d404add540e049a8 (diff)
downloadselphy_print-5163e01cc705ae61656d295e0e973bec0a6893af.tar.gz
selphy_print-5163e01cc705ae61656d295e0e973bec0a6893af.tar.bz2
selphy_print-5163e01cc705ae61656d295e0e973bec0a6893af.zip
mitsu70x: Fix oops in the getopt code.
-rw-r--r--backend_mitsu70x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend_mitsu70x.c b/backend_mitsu70x.c
index 9b6c992..6918c50 100644
--- a/backend_mitsu70x.c
+++ b/backend_mitsu70x.c
@@ -1887,7 +1887,9 @@ static int mitsu70x_query_serno(struct libusb_device_handle *dev, uint8_t endp_u
static void mitsu70x_cmdline(void)
{
- DEBUG("\t\t[ -s ] # Query status\n");
+ DEBUG("\t\t[ -s ] # Query printer status\n");
+ DEBUG("\t\t[ -j ] # Query job status\n");
+ DEBUG("\t\t[ -w ] # Wake up printer\n");
DEBUG("\t\t[ -f ] # Use fast return mode\n");
DEBUG("\t\t[ -k num ] # Set standby time (1-60 minutes, 0 disables)\n");
DEBUG("\t\t[ -x num ] # Set USB iSerialNumber Reporting (1 on, 0 off)\n");
@@ -1901,7 +1903,7 @@ static int mitsu70x_cmdline_arg(void *vctx, int argc, char **argv)
if (!ctx)
return -1;
- while ((i = getopt(argc, argv, GETOPT_LIST_GLOBAL "jks:wX:x:")) >= 0) {
+ while ((i = getopt(argc, argv, GETOPT_LIST_GLOBAL "jk:swX:x:")) >= 0) {
switch(i) {
GETOPT_PROCESS_GLOBAL
case 'j':