mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-09-14 11:13:14 +08:00
code cleaning
This commit is contained in:
parent
4633374121
commit
c1816d512d
@ -25,23 +25,6 @@
|
|||||||
#define DEBUG_BAUDRATE 115200
|
#define DEBUG_BAUDRATE 115200
|
||||||
#endif //~DEBUG_BAUDRATE
|
#endif //~DEBUG_BAUDRATE
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
const char * pathToFileName(const char * path)
|
|
||||||
{
|
|
||||||
size_t i = 0;
|
|
||||||
size_t pos = 0;
|
|
||||||
char * p = (char *)path;
|
|
||||||
while(*p) {
|
|
||||||
i++;
|
|
||||||
if(*p == '/' || *p == '\\') {
|
|
||||||
pos = i;
|
|
||||||
}
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
return path+pos;
|
|
||||||
}
|
|
||||||
#endif //ARDUINO_ARCH_ESP8266
|
|
||||||
|
|
||||||
void initDebug()
|
void initDebug()
|
||||||
{
|
{
|
||||||
#if (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL0) || (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL1)||(ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2)
|
#if (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL0) || (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL1)||(ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2)
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
|
|
||||||
#if defined(ESP_DEBUG_FEATURE)
|
#if defined(ESP_DEBUG_FEATURE)
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
extern const char * pathToFileName(const char * path);
|
//no need with latest esp8266 core
|
||||||
|
#define pathToFileName(p) p
|
||||||
#endif //ARDUINO_ARCH_ESP8266
|
#endif //ARDUINO_ARCH_ESP8266
|
||||||
#undef log_esp3d
|
#undef log_esp3d
|
||||||
#undef log_esp3dS
|
#undef log_esp3dS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user