commit 95eac26bbb4ae6258547d07aa111fafd57127ab5
parent 90adc8d43444b097a7f0608671238d1d930a4e6d
Author: Boss Marco <bossm8@students.bfh.ch>
Date: Tue, 10 Dec 2019 17:08:15 +0100
backlight invert added
Diffstat:
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -19,6 +19,7 @@ src/Makefile
src/Makefile.am~
src/Makefile.in
src/taler-mdb
+src/qr-show
stamp-h1
*.pro*
.qmake*
diff --git a/src/qr-show.c b/src/qr-show.c
@@ -115,8 +115,19 @@ static char *framebuffer_device_filename;
*/
static char *framebuffer_backlight_filename;
+/**
+ * Global option '-i' to invert backlight on/off values
+ */
static int backlight_invert;
+
+/**
+ * Standard backlight on value
+ */
static char backlight_on = '1';
+
+/**
+ * Standard backlight off value
+ */
static char backlight_off = '0';
/**
@@ -401,6 +412,10 @@ main (int argc,
"DELAY",
"how long should we display the text before continuing",
&delay),
+ GNUNET_GETOPT_option_flag ('i',
+ "backlight-invert",
+ "invert the backlight on/off values (standard on = 1)",
+ &backlight_invert),
GNUNET_GETOPT_OPTION_END
};