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.
This commit is contained in:
Nicolas Mailloux 2021-06-29 16:32:31 -04:00
parent c56d831baa
commit 51d06d6f22
2 changed files with 2 additions and 0 deletions

View file

@ -400,6 +400,7 @@ void settings::on_requestLeaseBtn_clicked()
void settings::on_usbmsBtn_clicked() void settings::on_usbmsBtn_clicked()
{ {
string_writeconfig("/tmp/in_usbms", "true");
QTimer::singleShot(1500, this, SLOT(brightnessDown())); QTimer::singleShot(1500, this, SLOT(brightnessDown()));
QString umount_prog ("umount"); QString umount_prog ("umount");

View file

@ -64,6 +64,7 @@ usbms_splash::usbms_splash(QWidget *parent) :
void usbms_splash::usbms_launch() void usbms_splash::usbms_launch()
{ {
string_writeconfig("/tmp/in_usbms", "true");
QTimer::singleShot(1500, this, SLOT(brightnessDown())); QTimer::singleShot(1500, this, SLOT(brightnessDown()));
QString umount_prog ("umount"); QString umount_prog ("umount");