From 35ccbedd66c615af2f66d1a5a5988d261fff90b1 Mon Sep 17 00:00:00 2001 From: ctlove0523 <478309639@qq.com> Date: Fri, 12 Mar 2021 14:36:27 +0800 Subject: [PATCH] Update iot_device.go --- iot_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iot_device.go b/iot_device.go index da71aa7..b4e1bb2 100644 --- a/iot_device.go +++ b/iot_device.go @@ -269,7 +269,7 @@ ENDFOR: } downloadFlag := CreateHttpClient().DownloadFile(filename, device.fileUrls[filename+FileActionDownload]) - if downloadFlag { + if !downloadFlag { glog.Errorf("down load file { %s } failed", filename) return false }