Applied astyle to files missed during repair of astyle Travis CI job

pull/10265/head
Cruz Monrreal II 2019-03-28 15:13:22 -05:00
parent 1549c5c425
commit ce33e29cb2
2 changed files with 2 additions and 2 deletions

View File

@ -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) 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) { if (!done) {
tr_error("\"AT+CWCOUNTRY_CUR=%d,\"%s\",%d,%d\" - FAIL", t_ap, country_code, channel_start, channels); tr_error("\"AT+CWCOUNTRY_CUR=%d,\"%s\",%d,%d\" - FAIL", t_ap, country_code, channel_start, channels);

View File

@ -893,7 +893,7 @@ nsapi_error_t ESP8266Interface::set_country_code(bool track_ap, const char *coun
// Firmware takes only first three characters // Firmware takes only first three characters
strncpy(_ch_info.country_code, country_code, sizeof(_ch_info.country_code)); 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.channel_start = channel_start;
_ch_info.channels = channels; _ch_info.channels = channels;