diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-10-11 00:34:46 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-10-11 00:34:46 +0200 |
| commit | dae309fe62dd97ade9d1ec84fdffe4eab44fb623 (patch) | |
| tree | 1ed80ecede0876ed7b5e1f85cac5914b24abeecf /daemon | |
| parent | dff2ba6143d68515f884753e9cc81cdf7ed0eca1 (diff) | |
| parent | 8bee022b0ff7659cb5b0bd35febae09826d8d298 (diff) | |
Merge pull request #94 from smurfy/fix-79
Added support for pebble-time appstore fixes #79
Diffstat (limited to 'daemon')
| -rw-r--r-- | daemon/watchconnector.cpp | 13 | ||||
| -rw-r--r-- | daemon/watchconnector.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/daemon/watchconnector.cpp b/daemon/watchconnector.cpp index 2890712..5961913 100644 --- a/daemon/watchconnector.cpp +++ b/daemon/watchconnector.cpp @@ -53,6 +53,7 @@ QVariantMap WatchConnector::WatchVersions::toMap() const map.insert("bootloader", this->bootLoaderBuild.toTime_t()); map.insert("serial", this->serialNumber); map.insert("address", this->address.toHex()); + map.insert("platform", this->hardwarePlatform); map.insertMulti("firmware", this->main.toMap()); map.insertMulti("firmware", this->safe.toMap()); } @@ -126,6 +127,18 @@ WatchConnector::WatchConnector(QObject *parent) : platform = hardwareMapping.value(_versions.safe.hw_revision).first; + switch (this->platform) { + case APLITE: + _versions.hardwarePlatform = "aplite"; + break; + case BASALT: + _versions.hardwarePlatform = "basalt"; + break; + case CHALK: + _versions.hardwarePlatform = "chalk"; + break; + } + if (u.bad()) { qCWarning(l) << "short read while reading firmware version"; } else { diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h index 27555a3..83e065c 100644 --- a/daemon/watchconnector.h +++ b/daemon/watchconnector.h @@ -197,6 +197,7 @@ public: SoftwareVersion safe; QDateTime bootLoaderBuild; QString hardwareRevision; + QString hardwarePlatform; QString serialNumber; QByteArray address; |
