Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lipoyang committed Jul 26, 2020
1 parent 91422da commit 0de59f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/w5500/w5500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ void W5500Class::init(uint8_t ss_pin)
}
}

#if defined(ESP32)
// extension for M5Stack ATOM
void W5500Class::init(uint8_t sck_pin, uint8_t miso_pin, uint8_t mosi_pin, uint8_t ss_pin)
{
Expand All @@ -55,6 +56,7 @@ void W5500Class::init(uint8_t sck_pin, uint8_t miso_pin, uint8_t mosi_pin, uint8
write( 0x1F, cntl_byte, 2); //0x1F - Sn_TXBUF_SIZE
}
}
#endif

uint16_t W5500Class::getTXFreeSize(SOCKET s)
{
Expand Down

0 comments on commit 0de59f5

Please sign in to comment.