Skip to content

Commit 2dc2dab

Browse files
fixing typos
1 parent 8e9701d commit 2dc2dab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/decompress/lzss.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class LZSSDecoder {
6767
static const int N = (1 << EI); /* buffer size */
6868
static const int F = ((1 << EJ) + 1); /* lookahead buffer size */
6969

70-
// alogirthm specific buffer used to store text that could be later referenced and copied
70+
// algorithm specific buffer used to store text that could be later referenced and copied
7171
uint8_t buffer[N * 2];
7272

7373
// this function gets 1 single char from the input buffer
@@ -90,7 +90,7 @@ class LZSSDecoder {
9090
FSM_EOF
9191
} state;
9292

93-
// these varialbe are used in a decode session and specific to the old C implementation
93+
// these variable are used in a decode session and specific to the old C implementation
9494
// there is no documentation about their meaning
9595
int i, r;
9696

src/decompress/utility.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int Arduino_Portenta_OTA::downloadAndDecompress(const char * url, bool const is_
195195
goto exit;
196196
}
197197

198-
// if state is dowload finished and completed correctly the state should be OTA_DOWNLOAD_FILE
198+
// if state is download finished and completed correctly the state should be OTA_DOWNLOAD_FILE
199199
if(ota_progress.state != OTA_DOWNLOAD_FILE) {
200200
res = static_cast<int>(Error::OtaDownload);
201201
goto exit;
@@ -206,7 +206,7 @@ int Arduino_Portenta_OTA::downloadAndDecompress(const char * url, bool const is_
206206
goto exit;
207207
}
208208

209-
// verify magic number: it may be done in the download function and stop teh download immediately
209+
// verify magic number: it may be done in the download function and stop the download immediately
210210
if(ota_header.header.magic_number != ARDUINO_PORTENTA_OTA_MAGIC) {
211211
res = static_cast<int>(Error::OtaHeaterMagicNumber);
212212
goto exit;

0 commit comments

Comments
 (0)