Skip to content

Commit 8385b61

Browse files
committed
ota: code clean up
1 parent 467ff38 commit 8385b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/user/ota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void ota_write_task(void *pvParameter)
137137
data_length -= size;
138138

139139
if (data_length == 0) {
140-
esp_err_t err = esp_ota_end(update_handle);
140+
err = esp_ota_end(update_handle);
141141
if (err != ESP_OK) {
142142
ESP_LOGE(OTA_TAG, "image data error.");
143143

0 commit comments

Comments
 (0)