aboutsummaryrefslogtreecommitdiff
path: root/src/qr-show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qr-show.c')
-rw-r--r--src/qr-show.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/qr-show.c b/src/qr-show.c
index 0010a9a..728b9ca 100644
--- a/src/qr-show.c
+++ b/src/qr-show.c
@@ -214,7 +214,9 @@ show_qrcode (const char *uri)
QRinput_free (qri);
if (0 < qrDisplay.backlightfd)
- (void) write (qrDisplay.backlightfd, &backlight_on, 1);
+ (void) ! write (qrDisplay.backlightfd,
+ &backlight_on,
+ 1);
}
@@ -242,7 +244,9 @@ shutdown_task (void *cls)
qrDisplay.var_info.xres * qrDisplay.var_info.yres
* sizeof (uint16_t));
if (0 < qrDisplay.backlightfd)
- (void) write (qrDisplay.backlightfd, &backlight_off, 1);
+ (void) ! write (qrDisplay.backlightfd,
+ &backlight_off,
+ 1);
if (NULL != qrDisplay.memory)
{
/* free the display data */
@@ -382,7 +386,9 @@ run (void *cls,
backlight_on = '0';
backlight_off = '1';
}
- (void) write (qrDisplay.backlightfd, &backlight_off, 1);
+ (void) ! write (qrDisplay.backlightfd,
+ &backlight_off,
+ 1);
}
}
else