From ce33e29cb24e3b5cf9a7359a8be6276e3bf4be3f Mon Sep 17 00:00:00 2001 From: Cruz Monrreal II Date: Thu, 28 Mar 2019 15:13:22 -0500 Subject: [PATCH] Applied astyle to files missed during repair of astyle Travis CI job --- components/wifi/esp8266-driver/ESP8266/ESP8266.cpp | 2 +- components/wifi/esp8266-driver/ESP8266Interface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wifi/esp8266-driver/ESP8266/ESP8266.cpp b/components/wifi/esp8266-driver/ESP8266/ESP8266.cpp index 018fda7410..1fb004f576 100644 --- a/components/wifi/esp8266-driver/ESP8266/ESP8266.cpp +++ b/components/wifi/esp8266-driver/ESP8266/ESP8266.cpp @@ -1232,7 +1232,7 @@ bool ESP8266::set_country_code_policy(bool track_ap, const char *country_code, i } done &= _parser.send("AT+CWCOUNTRY_CUR=%d,\"%s\",%d,%d", t_ap, country_code, channel_start, channels) - && _parser.recv("OK\n"); + && _parser.recv("OK\n"); if (!done) { tr_error("\"AT+CWCOUNTRY_CUR=%d,\"%s\",%d,%d\" - FAIL", t_ap, country_code, channel_start, channels); diff --git a/components/wifi/esp8266-driver/ESP8266Interface.cpp b/components/wifi/esp8266-driver/ESP8266Interface.cpp index c93f433352..8af1e07624 100644 --- a/components/wifi/esp8266-driver/ESP8266Interface.cpp +++ b/components/wifi/esp8266-driver/ESP8266Interface.cpp @@ -893,7 +893,7 @@ nsapi_error_t ESP8266Interface::set_country_code(bool track_ap, const char *coun // Firmware takes only first three characters strncpy(_ch_info.country_code, country_code, sizeof(_ch_info.country_code)); - _ch_info.country_code[sizeof(_ch_info.country_code)-1] = '\0'; + _ch_info.country_code[sizeof(_ch_info.country_code) - 1] = '\0'; _ch_info.channel_start = channel_start; _ch_info.channels = channels;