Skip to content

Commit

Permalink
Now sets IP address to "N/A" if chip init fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Apr 16, 2024
1 parent b4cdfd9 commit d87fff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wiznet/enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ bool enet_start (void)
task_add_systick(enet_poll, NULL);

} else {
strcpy(IPAddress, "N/A");
protocol_enqueue_foreground_task(report_warning, "Failed to start ethernet stack!");
return false;
}
Expand Down

0 comments on commit d87fff6

Please sign in to comment.