From 51d06d6f2250fef7671b887bee178fd1c91d8b05 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Tue, 29 Jun 2021 16:32:31 -0400 Subject: [PATCH] Let others know that we're in USB MS This is to prevent things such as sleep mode from printing anything on the display when the reader is in USB MS. --- settings.cpp | 1 + usbms_splash.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/settings.cpp b/settings.cpp index e9a95ab..736926d 100644 --- a/settings.cpp +++ b/settings.cpp @@ -400,6 +400,7 @@ void settings::on_requestLeaseBtn_clicked() void settings::on_usbmsBtn_clicked() { + string_writeconfig("/tmp/in_usbms", "true"); QTimer::singleShot(1500, this, SLOT(brightnessDown())); QString umount_prog ("umount"); diff --git a/usbms_splash.cpp b/usbms_splash.cpp index 12e17b0..645d821 100644 --- a/usbms_splash.cpp +++ b/usbms_splash.cpp @@ -64,6 +64,7 @@ usbms_splash::usbms_splash(QWidget *parent) : void usbms_splash::usbms_launch() { + string_writeconfig("/tmp/in_usbms", "true"); QTimer::singleShot(1500, this, SLOT(brightnessDown())); QString umount_prog ("umount");