diff options
Diffstat (limited to 'metawatch/metawatch.cpp')
-rw-r--r-- | metawatch/metawatch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp index 510db2c..a8eab4d 100644 --- a/metawatch/metawatch.cpp +++ b/metawatch/metawatch.cpp @@ -514,8 +514,7 @@ void MetaWatch::updateLcdLines(Mode mode, const QImage& image, const QVector<boo void MetaWatch::configureLcdIdleSystemArea(bool entireScreen) { - Message msg(ConfigureLcdIdleBufferSize, QByteArray(26, 0)); - msg.data[0] = entireScreen ? 1 : 0; + Message msg(ConfigureLcdIdleBufferSize, QByteArray(1, entireScreen ? 1 : 0)); send(msg); } @@ -555,6 +554,9 @@ void MetaWatch::enableButton(Mode mode, Button button, ButtonPress press) // the pressed button and the event code were. msg.data[4] = 0x80 | ((press << 4) & 0x30) | (button & 0xF); + qDebug() << "enable button" << button << "(" << press << ")" << + "in mode" << mode << "to" << static_cast<unsigned char>(msg.data[4]); + send(msg); } |