Skip to content

Commit 71edeb8

Browse files
authored
lwIP_enc28j60 - add missing end() method (#2055)
1 parent c90248d commit 71edeb8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libraries/lwIP_enc28j60/src/utility/enc28j60.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,12 @@ bool ENC28J60::begin(const uint8_t* address, netif *net) {
516516

517517
/*---------------------------------------------------------------------------*/
518518

519+
void ENC28J60::end() {
520+
521+
}
522+
523+
/*---------------------------------------------------------------------------*/
524+
519525
uint16_t ENC28J60::sendFrame(const uint8_t* data, uint16_t datalen) {
520526
uint16_t dataend;
521527

libraries/lwIP_enc28j60/src/utility/enc28j60.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ class ENC28J60 {
6161
*/
6262
bool begin(const uint8_t* address, netif *net);
6363

64+
/**
65+
Shut down the Ethernet controlled
66+
*/
67+
void end();
68+
6469
/**
6570
Send an Ethernet frame
6671
@param data a pointer to the data to send

0 commit comments

Comments
 (0)