Bernd Gottschlag 5 роки тому
джерело
коміт
05696f7e74
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)
68
+		if (previousCipherBlock != (uint8_t*) data + LENGTH_OF_BLOCK)
69 69
 		{
70 70
 			previousCipherBlock -= LENGTH_OF_BLOCK;
71 71
 		}

Завантаження…
Відмінити
Зберегти