Skip to content

Commit 46418fe

Browse files
atottodok-net
authored andcommitted
Fix length typo (espressif#5189)
1 parent de66c39 commit 46418fe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cores/esp32/WMath.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ long map(long x, long in_min, long in_max, long out_min, long out_max) {
7777
return (delta * dividend + (divisor / 2)) / divisor + out_min;
7878
}
7979

80-
unsigned int makeWord(unsigned int w)
80+
unsigned int makeWord(uint16_t w)
8181
{
8282
return w;
8383
}

cores/esp32/WString.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ unsigned char String::equalsConstantTime(const String &s2) const {
555555
//at this point lengths are the same
556556
if(len() == 0)
557557
return 1;
558-
//at this point lenghts are the same and non-zero
558+
//at this point lengths are the same and non-zero
559559
const char *p1 = buffer();
560560
const char *p2 = s2.buffer();
561561
unsigned int equalchars = 0;

libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void loop() {
5656
// file found at server
5757
if(httpCode == HTTP_CODE_OK) {
5858

59-
// get lenght of document (is -1 when Server sends no Content-Length header)
59+
// get length of document (is -1 when Server sends no Content-Length header)
6060
int len = http.getSize();
6161

6262
// create buffer for read

0 commit comments

Comments
 (0)