Skip to content

Commit

Permalink
Added missing IF DEBUG
Browse files Browse the repository at this point in the history
Added missing IF DEBUG
  • Loading branch information
iot-playground committed May 12, 2015
1 parent 364dfa1 commit 8390338
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Esp8266EasyIoT/Esp8266EasyIoT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ void Esp8266EasyIoT::processReceive()
{
debug(PSTR("Receive timeout\n"));
_state = E_CIPCLOSE;
#ifdef DEBUG
debugPrintBuffer();
#endif
return;
}
delay(10);
Expand Down Expand Up @@ -783,11 +785,11 @@ bool Esp8266EasyIoT::isTimeout(unsigned long startTime, unsigned long timeout)

#ifdef DEBUG
void Esp8266EasyIoT::debugPrint(const char *fmt, ... ) {
char fmtBuffer[300];
char fmtBuffer[128];
va_list args;
va_start (args, fmt );
va_end (args);
vsnprintf_P(fmtBuffer, 299, fmt, args);
vsnprintf_P(fmtBuffer, 127, fmt, args);
va_end (args);


Expand Down

0 comments on commit 8390338

Please sign in to comment.