Fix compilations error with ESP8266

This commit is contained in:
Luc 2020-11-02 11:45:28 +01:00
parent bb2b7a8e62
commit 8425f96af8
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
#ifndef DEBUG_BAUDRATE #ifndef DEBUG_BAUDRATE
#define DEBUG_BAUDRATE 115200 #define DEBUG_BAUDRATE 115200
#ndif //~DEBUG_BAUDRATE #endif //~DEBUG_BAUDRATE
#if defined(ARDUINO_ARCH_ESP8266) #if defined(ARDUINO_ARCH_ESP8266)
const char * pathToFileName(const char * path) const char * pathToFileName(const char * path)

View File

@ -287,7 +287,7 @@ size_t SerialService::write(const uint8_t *buffer, size_t size)
} }
} }
uint SerialService::availableForWrite() int SerialService::availableForWrite()
{ {
return ESP3D_SERIAL.availableForWrite(); return ESP3D_SERIAL.availableForWrite();
} }

View File

@ -39,7 +39,7 @@ public:
const long * get_baudratelist(uint8_t * count); const long * get_baudratelist(uint8_t * count);
void flush(); void flush();
void swap(); void swap();
uint availableForWrite(); int availableForWrite();
int available(); int available();
bool is_valid_baudrate(long br); bool is_valid_baudrate(long br);
size_t write(uint8_t c); size_t write(uint8_t c);