Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compile errors for STM32 boards #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/WiFiEspClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ WiFiEspClient::WiFiEspClient(uint8_t sock) : _sock(sock)
// this is very slow on ESP
size_t WiFiEspClient::print(const __FlashStringHelper *ifsh)
{
printFSH(ifsh, false);
return printFSH(ifsh, false);
}

// if we do override this, the standard println will call the print
// method twice
size_t WiFiEspClient::println(const __FlashStringHelper *ifsh)
{
printFSH(ifsh, true);
return printFSH(ifsh, true);
}


Expand Down
7 changes: 7 additions & 0 deletions src/utility/EspDrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ along with The Arduino WiFiEsp library. If not, see
#include "utility/EspDrv.h"
#include "utility/debug.h"

#if defined(ARDUINO_ARCH_STM32)
//For va_start
#include <stdarg.h>

//vsnprintf_P is not defined in avr/pgmspace.h for ststm32-maple
#define vsnprintf_P vsnprintf
#endif

#define NUMESPTAGS 5

Expand Down
2 changes: 1 addition & 1 deletion src/utility/RingBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void RingBuffer::getStr(char * destination, unsigned int skipChars)

void RingBuffer::getStrN(char * destination, unsigned int skipChars, unsigned int num)
{
int len = ringBufP-ringBuf-skipChars;
unsigned int len = ringBufP-ringBuf-skipChars;

if (len>num)
len=num;
Expand Down