From 3fd545b05b45ec62a67b426ce809c804c86b8593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Mon, 18 Mar 2024 16:57:28 +0100 Subject: [PATCH] mgmt: hawkbit: Fix condition in hawkbit_probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix send_request condition in hawkbit_probe function Signed-off-by: Fin Maaß --- subsys/mgmt/hawkbit/hawkbit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/mgmt/hawkbit/hawkbit.c b/subsys/mgmt/hawkbit/hawkbit.c index 0d12474f380..296039b5018 100644 --- a/subsys/mgmt/hawkbit/hawkbit.c +++ b/subsys/mgmt/hawkbit/hawkbit.c @@ -1147,7 +1147,7 @@ enum hawkbit_response hawkbit_probe(void) flash_img_init(&hb_context.flash_ctx); - if (send_request(HTTP_GET, HAWKBIT_DOWNLOAD, HAWKBIT_STATUS_FINISHED_NONE, + if (!send_request(HTTP_GET, HAWKBIT_DOWNLOAD, HAWKBIT_STATUS_FINISHED_NONE, HAWKBIT_STATUS_EXEC_NONE)) { LOG_ERR("Send request failed (%s)", "HAWKBIT_DOWNLOAD"); hb_context.code_status = HAWKBIT_NETWORKING_ERROR;