summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon/bankmanager.cpp4
-rw-r--r--daemon/stm32crc.cpp2
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,