diff --git a/include/netutils/esp8266.h b/include/netutils/esp8266.h index a9dda56bf..2df3e4e0a 100644 --- a/include/netutils/esp8266.h +++ b/include/netutils/esp8266.h @@ -52,7 +52,7 @@ #define lespBSSID_SIZE 6 -#define lespIP(x1,x2,x3,x4) ( (x1)<<24 |(x2)<<16 |(x3)<<8 |(x4)<<0 ) +#define lespIP(x1,x2,x3,x4) ((x1) << 24 | (x2) << 16 | (x3) << 8 | (x4) << 0) /**************************************************************************** * Public Types @@ -62,7 +62,7 @@ typedef enum { lesp_eMODE_AP = 0, lesp_eMODE_STATION = 1, - lesp_eMODE_BOTH = 2, + lesp_eMODE_BOTH = 2 } lesp_mode_t; typedef enum diff --git a/netutils/esp8266/.gitignore b/netutils/esp8266/.gitignore new file mode 100644 index 000000000..f21c854d1 --- /dev/null +++ b/netutils/esp8266/.gitignore @@ -0,0 +1,6 @@ +/.built +/.depend +/Make.dep +/*.src +/*.obj +/*.lst diff --git a/netutils/esp8266/Makefile b/netutils/esp8266/Makefile index 924753033..7435c082b 100644 --- a/netutils/esp8266/Makefile +++ b/netutils/esp8266/Makefile @@ -39,34 +39,34 @@ include $(APPDIR)/Make.defs # ESP8266 Library -ASRCS = -CSRCS = +ASRCS = +CSRCS = ifeq ($(CONFIG_NET_TCP),y) -CSRCS += esp8266.c +CSRCS += esp8266.c endif -AOBJS = $(ASRCS:.S=$(OBJEXT)) -COBJS = $(CSRCS:.c=$(OBJEXT)) +AOBJS = $(ASRCS:.S=$(OBJEXT)) +COBJS = $(CSRCS:.c=$(OBJEXT)) -SRCS = $(ASRCS) $(CSRCS) -OBJS = $(AOBJS) $(COBJS) +SRCS = $(ASRCS) $(CSRCS) +OBJS = $(AOBJS) $(COBJS) ifeq ($(CONFIG_WINDOWS_NATIVE),y) - BIN = ..\..\libapps$(LIBEXT) + BIN = ..\..\libapps$(LIBEXT) else ifeq ($(WINTOOL),y) - BIN = ..\\..\\libapps$(LIBEXT) + BIN = ..\\..\\libapps$(LIBEXT) else - BIN = ../../libapps$(LIBEXT) + BIN = ../../libapps$(LIBEXT) endif endif -ROOTDEPPATH = --dep-path . +ROOTDEPPATH = --dep-path . # Common build -VPATH = +VPATH = all: .built .PHONY: context depend clean distclean diff --git a/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c index a6ec06894..a6178a2e3 100644 --- a/netutils/esp8266/esp8266.c +++ b/netutils/esp8266/esp8266.c @@ -1407,7 +1407,7 @@ int lesp_gethostbyname(char *hostname, uint16_t usNameLen, int lesp_mdnsadvertiser(uint16_t mdnsEnabled, char *deviceServiceName, uint16_t deviceServiceNameLength) { - syslog(LOG_ERR, "Not implemented %s\n",__func__); + syslog(LOG_ERR, "Not implemented %s\n", __func__); return -1; }