From 64390377048b9c1dc8b26413c0b7463665ac2034 Mon Sep 17 00:00:00 2001 From: Marco Marche Date: Wed, 14 Feb 2024 11:53:31 +0100 Subject: [PATCH] fix(Ethernet): missing return statement in begin with mac, timeout and responseTimeout --- libraries/Ethernet/src/Ethernet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Ethernet/src/Ethernet.cpp b/libraries/Ethernet/src/Ethernet.cpp index 196afa01d..50c43c9c5 100644 --- a/libraries/Ethernet/src/Ethernet.cpp +++ b/libraries/Ethernet/src/Ethernet.cpp @@ -9,7 +9,7 @@ int arduino::EthernetClass::begin(uint8_t *mac, unsigned long timeout, unsigned if (eth_if == nullptr) return 0; } eth_if->set_dhcp(true); - _begin(mac, timeout, responseTimeout); + return _begin(mac, timeout, responseTimeout); } int arduino::EthernetClass::_begin(uint8_t *mac, unsigned long timeout, unsigned long responseTimeout) {