diff options
| author | Javier <dev.git@javispedro.com> | 2014-12-13 19:36:05 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2014-12-13 19:36:05 +0100 |
| commit | 93ec9b745032b4e9c02756dd0361de3a364b6742 (patch) | |
| tree | 79ba7fdd90eeed88e4409429af1beb82278dcb18 /daemon | |
| parent | 78d9610591174ee02db02249c4ce9c25d93fc550 (diff) | |
minor cleanup
Diffstat (limited to 'daemon')
| -rw-r--r-- | daemon/bankmanager.cpp | 4 | ||||
| -rw-r--r-- | daemon/stm32crc.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/daemon/bankmanager.cpp b/daemon/bankmanager.cpp index dd278af..7bc7f91 100644 --- a/daemon/bankmanager.cpp +++ b/daemon/bankmanager.cpp @@ -168,7 +168,7 @@ bool BankManager::unloadApp(int slot) int installId = _slots[slot].id; QByteArray msg; - msg.reserve(2 * sizeof(quint32)); + msg.reserve(1 + 2 * sizeof(quint32)); Packer p(&msg); p.write<quint8>(WatchConnector::appmgrREMOVE_APP); p.write<quint32>(installId); @@ -183,7 +183,7 @@ bool BankManager::unloadApp(int slot) uint result = u.read<quint32>(); switch (result) { - case 1: /* Success */ + case Success: /* Success */ logger()->debug() << "sucessfully unloaded app"; break; default: diff --git a/daemon/stm32crc.cpp b/daemon/stm32crc.cpp index dd09f38..2bb1def 100644 --- a/daemon/stm32crc.cpp +++ b/daemon/stm32crc.cpp @@ -10,7 +10,7 @@ * XorOut = 0xffffffff * ReflectOut = False * Algorithm = table-driven - * Modified to use STM32-like word size + * The algorithm has been modified to use 32bit word size like STM32 *****************************************************************************/ static const quint32 crc_table[256] = { 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, |
