diff --git a/Src/mainwindow.cpp b/Src/mainwindow.cpp index db196f4..dc9781e 100644 --- a/Src/mainwindow.cpp +++ b/Src/mainwindow.cpp @@ -199,11 +199,8 @@ void Mainwindows::onReadReady() { if (address == m_buttonRegisters[i]) { m_buttonValues[i] = value; bool bitState = (value >> m_buttonBits[i]) & 1; - m_buttons[i]->setText(QString("Reg %1 Bit %2: %3") - .arg(m_buttonRegisters[i]) - .arg(m_buttonBits[i]) - .arg(bitState ? "1" : "0")); - break; + m_buttons[i]->setText(QString("%1") + .arg(bitState ? "Закрыть" : "Открыть")); } } }