diff options
Diffstat (limited to 'src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp')
-rw-r--r-- | src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp b/src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp index 85d19e26..6e3a8c2c 100644 --- a/src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp +++ b/src/DuetNG/DuetEthernet/Wiznet/Ethernet/wizchip_conf.cpp @@ -53,6 +53,7 @@ #include <cstddef> #include <cstring> #include "wizchip_conf.h" +#include "WizSpi.h" /** * @\ref WIZCHIP instance data @@ -181,8 +182,9 @@ void wizchip_sw_reset(void) setSIPR(sip); } -int8_t wizchip_init(uint8_t* txsize, uint8_t* rxsize) +int8_t wizchip_init(const uint8_t* txsize, const uint8_t* rxsize) { + WizSpi::Init(); wizchip_sw_reset(); if (txsize != nullptr) { |