1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +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());
if (_oldMessage.isOpen() && !msg.isOpen()) {
// regular close
if (_oldMessage.isOpen()
&& !msg.isOpen()
&& !doormsg.isLockButton) {
_soundLock.playAsync();
} else if (!_oldMessage.isOpen() && msg.isOpen()) {
// regular open