mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
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:
parent
c56d831baa
commit
51d06d6f22
2 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue