Skip to content

Commit 5df269e

Browse files
committed
Code style
1 parent a73162a commit 5df269e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/microchip/TC6_Arduino_10BASE_T1S.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ bool TC6_Arduino_10BASE_T1S::begin(IPAddress const ip_addr,
137137
memcpy(_lw.ip.mac, mac_addr.data(), sizeof(_lw.ip.mac));
138138

139139
/* Initialize the TC6 library and pass a global tag. */
140-
if (_lw.tc.tc6 = TC6_Init(&_lw);
141-
_lw.tc.tc6 == NULL)
140+
_lw.tc.tc6 = TC6_Init(&_lw);
141+
if (_lw.tc.tc6 == NULL) {
142142
return false;
143+
}
143144

144145
TC6ListNode * ptr = tc6_lwip_instance_list_head;
145146
while (ptr != nullptr) ptr = ptr->next;

0 commit comments

Comments
 (0)