浏览代码

Fix decryption function

Bernd Gottschlag 5 年前
父节点
当前提交
b31efd8359
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      weather-sensor/firmware/encryption.c

+ 1
- 1
weather-sensor/firmware/encryption.c 查看文件

@@ -65,7 +65,7 @@ void Decrypt(uint32_t * data, uint8_t dataLength, uint64_t salt, const uint32_t
65 65
 
66 66
 		/* Setup for next block */
67 67
 		currentCipherBlock = previousCipherBlock;
68
-		if (previousCipherBlock != (uint8_t*) data + LENGTH_OF_BLOCK)
68
+		if (previousCipherBlock != (uint8_t*) data)
69 69
 		{
70 70
 			previousCipherBlock -= LENGTH_OF_BLOCK;
71 71
 		}

正在加载...
取消
保存