1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +01:00

Small bugfix

This commit is contained in:
Ralf Ramsauer 2015-10-11 19:38:06 +02:00
parent 5c8ca78c99
commit d504b191d5

View File

@ -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