Skip to content

Commit

Permalink
disable lwip loop and slip interface
Browse files Browse the repository at this point in the history
it was causing memory leak when wifi_set_opmode_current() was called to restart wireless interface
  • Loading branch information
Kristoffer Ek committed May 1, 2020
1 parent f3df20e commit a562cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@
* LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1) and loopif.c
*/
#ifndef LWIP_HAVE_LOOPIF
#define LWIP_HAVE_LOOPIF 1
#define LWIP_HAVE_LOOPIF 0
#endif

/*
Expand All @@ -1232,7 +1232,7 @@
* LWIP_HAVE_SLIPIF==1: Support slip interface and slipif.c
*/
#ifndef LWIP_HAVE_SLIPIF
#define LWIP_HAVE_SLIPIF 1
#define LWIP_HAVE_SLIPIF 0
#endif

/*
Expand Down
2 changes: 2 additions & 0 deletions lwip/netif/espenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "gpio.h"
#include "mem.h"

#if 0 // DEBUG: disable all espenc - we dont need it for MeterLogger hardware
struct netif enc_netif;

typedef enum {
Expand Down Expand Up @@ -451,3 +452,4 @@ struct netif* espenc_init(uint8_t *mac_addr, ip_addr_t *ip, ip_addr_t *mask, ip_
return new_netif;
}

#endif

0 comments on commit a562cb5

Please sign in to comment.