mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-27 08:13:55 +00:00
Fix wrong condition in mqtt_pkcs11_demo_helpers.c (#1390)
* Fix Fleet Provisioning demo flow issues Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com> * Fix CI-check failures Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com> * Fix wrong condition in mqtt_demo_helpers.c Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com> * Revert unrelated change in Fleet Provisioning --------- Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>
This commit is contained in:
@@ -809,7 +809,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
|
||||
xMqttSessionEstablished = true;
|
||||
}
|
||||
|
||||
if( xReturnStatus == pdFAIL )
|
||||
if( xReturnStatus != pdFAIL )
|
||||
{
|
||||
/* Check if session is present and if there are any outgoing publishes
|
||||
* that need to resend. This is only valid if the broker is
|
||||
|
||||
@@ -807,7 +807,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
|
||||
xMqttSessionEstablished = true;
|
||||
}
|
||||
|
||||
if( xReturnStatus == pdFAIL )
|
||||
if( xReturnStatus != pdFAIL )
|
||||
{
|
||||
/* Check if session is present and if there are any outgoing publishes
|
||||
* that need to resend. This is only valid if the broker is
|
||||
|
||||
Reference in New Issue
Block a user