]> git.sur5r.net Git - freertos/commitdiff
Remove IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ) from MQTT code
authorgaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 23 Jul 2019 04:49:24 +0000 (04:49 +0000)
committergaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 23 Jul 2019 04:49:24 +0000 (04:49 +0000)
The cut down version of the task pool has only one task pool, namely,
system task pool. All the task pool API functions accept NULL as a
valid parameter for IotTaskPool_t and use the system task pool when
NULL is passed for the system task pool.

IOT_SYSTEM_TASKPOOL is defined to NULL to use system task pool and
therefore the above assert is no longer valid.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2698 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS-Plus/Source/FreeRTOS-IoT-Libraries/c_sdk/standard/mqtt/src/iot_mqtt_operation.c

index 7923d62b329bb2413d22e5689f6d37178596e742..bfe08d7b2d95c31c39b0bb4a4ff54e53cdcc757e 100644 (file)
@@ -656,7 +656,7 @@ void _IotMqtt_ProcessKeepAlive( IotTaskPool_t pTaskPool,
     _mqttConnection_t * pMqttConnection = ( _mqttConnection_t * ) pContext;\r
 \r
     /* Check parameters. */\r
-    IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );\r
+    /* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */\r
     IotMqtt_Assert( pKeepAliveJob == pMqttConnection->keepAliveJob );\r
 \r
     /* Check that keep-alive interval is valid. The MQTT spec states its maximum\r
@@ -786,7 +786,7 @@ void _IotMqtt_ProcessIncomingPublish( IotTaskPool_t pTaskPool,
      * are disabled. */\r
     ( void ) pTaskPool;\r
     ( void ) pPublishJob;\r
-    IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );\r
+    /* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */\r
     IotMqtt_Assert( pOperation->incomingPublish == true );\r
     IotMqtt_Assert( pPublishJob == pOperation->job );\r
 \r
@@ -839,7 +839,7 @@ void _IotMqtt_ProcessSend( IotTaskPool_t pTaskPool,
      * are disabled. */\r
     ( void ) pTaskPool;\r
     ( void ) pSendJob;\r
-    IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );\r
+    /* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */\r
     IotMqtt_Assert( pSendJob == pOperation->job );\r
 \r
     /* The given operation must have an allocated packet and be waiting for a status. */\r
@@ -1020,7 +1020,7 @@ void _IotMqtt_ProcessCompletedOperation( IotTaskPool_t pTaskPool,
      * are disabled. */\r
     ( void ) pTaskPool;\r
     ( void ) pOperationJob;\r
-    IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );\r
+    /* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */\r
     IotMqtt_Assert( pOperationJob == pOperation->job );\r
 \r
     /* The operation's callback function and status must be set. */\r