mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Changes to MD5Builder missing from the last commit
This commit is contained in:
parent
063e4cc88f
commit
90bbec9f50
@ -5,7 +5,7 @@ uint8_t hex_char_to_byte(uint8_t c)
|
|||||||
{
|
{
|
||||||
return (c >= 'a' && c <= 'f') ? (c - ((uint8_t)'a' - 0xa)) :
|
return (c >= 'a' && c <= 'f') ? (c - ((uint8_t)'a' - 0xa)) :
|
||||||
(c >= 'A' && c <= 'F') ? (c - ((uint8_t)'A' - 0xA)) :
|
(c >= 'A' && c <= 'F') ? (c - ((uint8_t)'A' - 0xA)) :
|
||||||
(c >= '0'&& c<= '9') ? (c - (uint8_t)'0') : 0;
|
(c >= '0' && c<= '9') ? (c - (uint8_t)'0') : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MD5Builder::begin(void)
|
void MD5Builder::begin(void)
|
||||||
@ -72,7 +72,6 @@ bool MD5Builder::addStream(Stream & stream, const size_t maxLen)
|
|||||||
maxLengthLeft -= numBytesRead;
|
maxLengthLeft -= numBytesRead;
|
||||||
bytesAvailable = stream.available();
|
bytesAvailable = stream.available();
|
||||||
}
|
}
|
||||||
printf("ba: %d mll: %d\n", bytesAvailable, maxLengthLeft);
|
|
||||||
free(buf);
|
free(buf);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user