* Fix chart background based on theme

* Change chart history to one day based on some devices having less history.(thanks michael.hufer@gmx.de)
* Have charts min/max be based on actual data received instead of hard coded values.(thanks michael.hufer@gmx.de)
This commit is contained in:
2021-12-01 16:32:15 -05:00
parent 07079b7d1b
commit d043be7754
6 changed files with 41 additions and 9 deletions

View File

@@ -96,7 +96,8 @@ private:
const QByteArray magicBytes = QByteArray::fromHex("a01f");
const QByteArray historyReadInit = QByteArray::fromHex("a00000");
const quint16 historySize = 24;
float temp = 0.0;
quint32 bright = 0;
quint8 moisture = 0;