mirror of https://github.com/ARMmbed/mbed-os.git
Applied astyle to files missed during repair of astyle Travis CI job
parent
1549c5c425
commit
ce33e29cb2
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue