From 30f9ec7c1fa09f1202b5c62864c0229d0c785ec3 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..a7a3cff 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);