suppress warnings

This commit is contained in:
2022-04-02 11:47:00 +02:00
parent 207c5e67ab
commit 53f5b78356
2 changed files with 10 additions and 7 deletions

12
mqtt.c
View File

@@ -56,11 +56,11 @@ void mqtt_pub(Client* mqtt_client, char * mqtt_topic, char * mqtt_msg, int mqtt_
{
printf(" - ERROR\r\n");
//Reboot device after 20 continuous errors (~ 20sec)
while(1);
//if(mqtt_err_cnt++ > 20)
//{
// printf("Connection with MQTT Broker was lost!!\r\nReboot the board..\r\n");
// while(1);
//}
//while(1);
if(mqtt_err_cnt++ > 20)
{
printf("Connection with MQTT Broker was lost!!\r\nReboot the board..\r\n");
while(1);
}
}
}