diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-28 14:19:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-28 14:19:11 +0100 |
commit | 821b2af393c41d6a22da17b529271fec375b31cc (patch) | |
tree | 01f896158ca1bbc780be913a92b907f4f5087ad3 /src/qr-show.c | |
parent | 79a682aebe685bd3eb472453267cf3cfafb39400 (diff) | |
download | taler-mdb-821b2af393c41d6a22da17b529271fec375b31cc.tar.gz taler-mdb-821b2af393c41d6a22da17b529271fec375b31cc.tar.bz2 taler-mdb-821b2af393c41d6a22da17b529271fec375b31cc.zip |
add multi-instance and preview support
Diffstat (limited to 'src/qr-show.c')
-rw-r--r-- | src/qr-show.c | 12 |
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 |