Skip to content

Commit 1af93ba

Browse files
committed
Rename otaconfigMAX_NUM_OTA_DATA_BUFFERS to otademoconfigMAX_NUM_OTA_DATA_BUFFERS
1 parent e5b1f27 commit 1af93ba

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

components/FreeRTOS-Libraries-Integration-Tests/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/trans
77
# This gives MQTT_TEST_SOURCES, and MQTT_TEST_INCLUDE_DIRS
88
include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/mqtt_test.cmake)
99

10-
# This gives OTA_PAL_TEST_SOURCES, and OTA_PAL_TEST_INCLUDE_DIRS
11-
# include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/ota_pal_test.cmake)
12-
1310
# This gives PKCS11_TEST_SOURCES, and PKCS11_TEST_INCLUDE_DIRS
1411
include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/pkcs11_test.cmake)
1512

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static uint8_t currentFileId = 0;
228228
static uint32_t totalBytesReceived = 0;
229229
char globalJobId[ MAX_JOB_ID_LENGTH ] = { 0 };
230230

231-
static OtaDataEvent_t dataBuffers[ otaconfigMAX_NUM_OTA_DATA_BUFFERS ] = { 0 };
231+
static OtaDataEvent_t dataBuffers[ otademoconfigMAX_NUM_OTA_DATA_BUFFERS ] = { 0 };
232232
static OtaJobEventData_t jobDocBuffer = { 0 };
233233
static AfrOtaJobDocumentFields_t jobFields = { 0 };
234234
static uint8_t OtaImageSignatureDecoded[ OTA_MAX_SIGNATURE_SIZE ] = { 0 };
@@ -897,7 +897,7 @@ static uint16_t getFreeOTABuffers( void )
897897

898898
if( xSemaphoreTake( bufferSemaphore, portMAX_DELAY ) == pdTRUE )
899899
{
900-
for( ulIndex = 0; ulIndex < otaconfigMAX_NUM_OTA_DATA_BUFFERS; ulIndex++ )
900+
for( ulIndex = 0; ulIndex < otademoconfigMAX_NUM_OTA_DATA_BUFFERS; ulIndex++ )
901901
{
902902
if( dataBuffers[ ulIndex ].bufferUsed == false )
903903
{
@@ -939,7 +939,7 @@ static OtaDataEvent_t * getOtaDataEventBuffer( void )
939939

940940
if( xSemaphoreTake( bufferSemaphore, portMAX_DELAY ) == pdTRUE )
941941
{
942-
for( ulIndex = 0; ulIndex < otaconfigMAX_NUM_OTA_DATA_BUFFERS; ulIndex++ )
942+
for( ulIndex = 0; ulIndex < otademoconfigMAX_NUM_OTA_DATA_BUFFERS; ulIndex++ )
943943
{
944944
if( dataBuffers[ ulIndex ].bufferUsed == false )
945945
{

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
/**
9393
* @brief The number of OTA data buffer.
9494
*/
95-
#define otaconfigMAX_NUM_OTA_DATA_BUFFERS ( CONFIG_GRI_OTA_MAX_NUM_DATA_BUFFERS )
95+
#define otademoconfigMAX_NUM_OTA_DATA_BUFFERS ( CONFIG_GRI_OTA_MAX_NUM_DATA_BUFFERS )
9696

9797
/**
9898
* @brief The version for the firmware which is running. OTA agent uses this

0 commit comments

Comments
 (0)