Skip to content

Commit

Permalink
Use static memory instead of stack for OTA decoded data
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
chinglee-iot committed Aug 1, 2024
1 parent ee2901e commit cd63e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ static void processOTAEvents( void )
}
else
{
uint8_t decodedData[ mqttFileDownloader_CONFIG_BLOCK_SIZE ];
static uint8_t decodedData[ mqttFileDownloader_CONFIG_BLOCK_SIZE ];
size_t decodedDataLength = 0;
MQTTFileDownloaderStatus_t xReturnStatus;
int16_t result = -1;
Expand Down

0 comments on commit cd63e0e

Please sign in to comment.