Skip to content

Commit a750bdb

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 8a80bcc commit a750bdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp32/IPAddress.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ bool IPAddress::fromString6(const char *address) {
204204
// netif_index_to_name crashes on latest esp-idf
205205
// _zone = netif_name_to_index(address);
206206
// in the interim, we parse the suffix as a zone number
207-
while ((*address != '\0') && (!isdigit(*address))) { // skip all non-digit after '%'
207+
while ((*address != '\0') && (!isdigit(*address))) { // skip all non-digit after '%'
208208
address++;
209209
}
210-
_zone = atol(address) + 1; // increase by one by convention, so we can have zone '0'
210+
_zone = atol(address) + 1; // increase by one by convention, so we can have zone '0'
211211
while (*address != '\0') {
212212
address++;
213213
}
@@ -361,7 +361,7 @@ size_t IPAddress::printTo(Print &p, bool includeZone) const {
361361
if (_zone > 0 && includeZone) {
362362
n += p.print('%');
363363
// look for the interface name
364-
for (netif* intf = netif_list; intf != nullptr; intf = intf->next) {
364+
for (netif *intf = netif_list; intf != nullptr; intf = intf->next) {
365365
if (_zone - 1 == intf->num) {
366366
n += p.print(intf->name[0]);
367367
n += p.print(intf->name[1]);

0 commit comments

Comments
 (0)