mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
Small bugfix
This commit is contained in:
parent
5c8ca78c99
commit
d504b191d5
@ -31,8 +31,9 @@ void MainWindow::setClientmessage(const Clientmessage &msg)
|
|||||||
|
|
||||||
_LED(msg.isOpen());
|
_LED(msg.isOpen());
|
||||||
|
|
||||||
if (_oldMessage.isOpen() && !msg.isOpen()) {
|
if (_oldMessage.isOpen()
|
||||||
// regular close
|
&& !msg.isOpen()
|
||||||
|
&& !doormsg.isLockButton) {
|
||||||
_soundLock.playAsync();
|
_soundLock.playAsync();
|
||||||
} else if (!_oldMessage.isOpen() && msg.isOpen()) {
|
} else if (!_oldMessage.isOpen() && msg.isOpen()) {
|
||||||
// regular open
|
// regular open
|
||||||
|
Loading…
Reference in New Issue
Block a user