1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fix issue on write error

This commit is contained in:
Mimmo La Fauci
2012-06-07 00:55:35 +02:00
parent 1c539c0840
commit abd9db126b
4 changed files with 10 additions and 5 deletions

View File

@ -1476,7 +1476,7 @@ bool checkMsgFormat(uint8_t* _recv, int len, int* offset)
unsigned char* recv = getStartCmdSeq(_recv, len, offset);
if ((recv == NULL)||(recv!=_recv))
{
if ((INFO_WARN_FLAG)&&(len < 20)) //TODO stamp only short messages wrong
if ((enableDebug & INFO_WARN_FLAG)&&(len < 20)) //TODO stamp only short messages wrong
dump((char*)_recv, len);
if (recv == NULL)
@ -1551,7 +1551,7 @@ void spi_poll(struct netif* netif) {
{
sendError();
WARN("Check format msg failed!\n");
if (INFO_WARN_FLAG)
if (enableDebug & INFO_WARN_FLAG)
dump((char*)_receiveBuffer, receivedChars);
state = SPI_CMD_IDLE;
count=0;