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());
|
||||
|
||||
if (_oldMessage.isOpen() && !msg.isOpen()) {
|
||||
// regular close
|
||||
if (_oldMessage.isOpen()
|
||||
&& !msg.isOpen()
|
||||
&& !doormsg.isLockButton) {
|
||||
_soundLock.playAsync();
|
||||
} else if (!_oldMessage.isOpen() && msg.isOpen()) {
|
||||
// regular open
|
||||
|
Loading…
Reference in New Issue
Block a user