ソースを参照

修改改FOTA在COTA之后MD5校验失败错误,同时完善代码格式

warfalcon-spunky 5 年 前
コミット
616b8e65e1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      iotkit-embedded/src/ota/iotx_ota.c

+ 1 - 1
iotkit-embedded/src/ota/iotx_ota.c

@@ -145,7 +145,7 @@ static int ota_callback(void *pcontext, const char *msg, uint32_t msg_len, iotx_
             {
                 otalib_Sha256Deinit(h_ota->sha256);
             }
-			h_ota->sha256 = otalib_Sha256Init();				
+            h_ota->sha256 = otalib_Sha256Init();				
 
             if (h_ota->fetch_cb) {
                 h_ota->fetch_cb(h_ota->user_data, 0, h_ota->size_file, h_ota->purl, h_ota->version);