Skip to content

Commit cd63e0e

Browse files
committed
Use static memory instead of stack for OTA decoded data
* Default block size is 4096. Task stack size may have to be changed if allocating this buffer from stack. Using static memory here instead of stack
1 parent ee2901e commit cd63e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ static void processOTAEvents( void )
11861186
}
11871187
else
11881188
{
1189-
uint8_t decodedData[ mqttFileDownloader_CONFIG_BLOCK_SIZE ];
1189+
static uint8_t decodedData[ mqttFileDownloader_CONFIG_BLOCK_SIZE ];
11901190
size_t decodedDataLength = 0;
11911191
MQTTFileDownloaderStatus_t xReturnStatus;
11921192
int16_t result = -1;

0 commit comments

Comments
 (0)