From 2c901b89703d252bf71ff435a4f8d17b16b1a7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Fri, 27 Sep 2024 01:45:27 +0300 Subject: [PATCH] subdevice FOTA - change default download folder to /tmp/ Rather than ., because with LmP releases the filesystem is immutable in most places and thus you can't download anything there. --- edge-client/edge-client/subdevice_fota.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edge-client/edge-client/subdevice_fota.h b/edge-client/edge-client/subdevice_fota.h index 9148ec1..1d27fd0 100644 --- a/edge-client/edge-client/subdevice_fota.h +++ b/edge-client/edge-client/subdevice_fota.h @@ -49,7 +49,7 @@ #define ENDPOINT_SIZE 256 #define MANIFEST_URI_SIZE 256 #if !defined(SUBDEVICE_FIRMWARE_DOWNLOAD_LOCATION) -#define SUBDEVICE_FIRMWARE_DOWNLOAD_LOCATION "." +#define SUBDEVICE_FIRMWARE_DOWNLOAD_LOCATION "/tmp" #endif int fota_is_ready(uint8_t *data, size_t size, fota_state_e *fota_state); int fota_manifest_parse(const uint8_t *input_data, size_t input_size, manifest_firmware_info_t *fw_info);