mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-03 12:45:34 +02:00
fixed indents and bracets
This commit is contained in:
@@ -127,11 +127,13 @@ static esp_err_t esp_mqtt_set_config(esp_mqtt_client_handle_t client, const esp_
|
|||||||
|
|
||||||
if (config->lwt_msg[0]) {
|
if (config->lwt_msg[0]) {
|
||||||
client->connect_info.will_message = strdup(config->lwt_msg);
|
client->connect_info.will_message = strdup(config->lwt_msg);
|
||||||
if (config->lwt_msg_len > 0)
|
if (config->lwt_msg_len > 0) {
|
||||||
client->connect_info.will_length = config->lwt_msg_len;
|
client->connect_info.will_length = config->lwt_msg_len;
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
client->connect_info.will_length = strlen(config->lwt_msg);
|
client->connect_info.will_length = strlen(config->lwt_msg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
client->connect_info.will_qos = config->lwt_qos;
|
client->connect_info.will_qos = config->lwt_qos;
|
||||||
client->connect_info.will_retain = config->lwt_retain;
|
client->connect_info.will_retain = config->lwt_retain;
|
||||||
|
Reference in New Issue
Block a user