Optimize macro judgment statements to support ESP8266 and EC600S co-exist
This commit is contained in:
parent
a3ac2e56d8
commit
b80e0d06a3
|
|
@ -5,11 +5,14 @@
|
|||
#include "sal_module_wrapper.h"
|
||||
|
||||
#define USE_ESP8266
|
||||
|
||||
//#define USE_EC600S
|
||||
|
||||
#if defined(USE_ESP8266)
|
||||
#ifdef USE_ESP8266
|
||||
#include "esp8266.h"
|
||||
#elif defined(USE_EC600S)
|
||||
#endif
|
||||
|
||||
#ifdef USE_EC600S
|
||||
#include "ec600s.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -98,7 +101,6 @@ void mqttclient_task(void)
|
|||
esp8266_join_ap("Mculover666", "mculover666");
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_EC600S
|
||||
ec600s_sal_init(HAL_UART_PORT_2);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue