🐛 Spellcheck comments (#22496)
codespell -q 3 --builtin=clear,rare,informal,code -S ./Marlin/src/lcd/language -L alo,amin,endcode,stdio,uint
This commit is contained in:
@@ -204,7 +204,7 @@ void SPIFlashStorage::flushPage() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Part of the m_pageData was compressed, so ajust the pointers, freeing what was processed, shift the buffer
|
||||
// Part of the m_pageData was compressed, so adjust the pointers, freeing what was processed, shift the buffer
|
||||
// TODO: To avoid this copy, use a circular buffer
|
||||
memmove(m_pageData, m_pageData + inputProcessed, m_pageDataUsed - inputProcessed);
|
||||
m_pageDataUsed -= inputProcessed;
|
||||
|
@@ -55,7 +55,7 @@
|
||||
*
|
||||
* When reading, it loads a full page from SPI Flash at once and
|
||||
* keeps it in a private SRAM buffer. Data is loaded as needed to
|
||||
* fullfill requests. Sequential reads are optimal.
|
||||
* fulfill requests. Sequential reads are optimal.
|
||||
*
|
||||
* SPIFlashStorage.beginRead(myStartAddress);
|
||||
* while (there is data to read)
|
||||
|
@@ -237,7 +237,7 @@ void update_spi_flash() {
|
||||
uint8_t command_buf[512];
|
||||
|
||||
W25QXX.init(SPI_QUARTER_SPEED);
|
||||
//read back the gcode command befor erase spi flash
|
||||
//read back the gcode command before erase spi flash
|
||||
W25QXX.SPI_FLASH_BufferRead((uint8_t *)&command_buf, GCODE_COMMAND_ADDR, sizeof(command_buf));
|
||||
W25QXX.SPI_FLASH_SectorErase(VAR_INF_ADDR);
|
||||
W25QXX.SPI_FLASH_BufferWrite((uint8_t *)&gCfgItems, VAR_INF_ADDR, sizeof(gCfgItems));
|
||||
@@ -248,7 +248,7 @@ void update_gcode_command(int addr,uint8_t *s) {
|
||||
uint8_t command_buf[512];
|
||||
|
||||
W25QXX.init(SPI_QUARTER_SPEED);
|
||||
//read back the gcode command befor erase spi flash
|
||||
//read back the gcode command before erase spi flash
|
||||
W25QXX.SPI_FLASH_BufferRead((uint8_t *)&command_buf, GCODE_COMMAND_ADDR, sizeof(command_buf));
|
||||
W25QXX.SPI_FLASH_SectorErase(VAR_INF_ADDR);
|
||||
W25QXX.SPI_FLASH_BufferWrite((uint8_t *)&gCfgItems, VAR_INF_ADDR, sizeof(gCfgItems));
|
||||
|
@@ -503,7 +503,7 @@ uint32_t Pic_Info_Write(uint8_t *P_name, uint32_t P_size) {
|
||||
disp_assets_update_progress("Reading files...");
|
||||
dir_t d;
|
||||
while (dir.readDir(&d, card.longFilename) > 0) {
|
||||
// If we dont get a long name, but gets a short one, try it
|
||||
// If we don't get a long name, but gets a short one, try it
|
||||
if (card.longFilename[0] == 0 && d.name[0] != 0)
|
||||
dosName2LongName((const char*)d.name, card.longFilename);
|
||||
if (card.longFilename[0] == 0) continue;
|
||||
|
@@ -54,7 +54,7 @@ void printer_state_polling() {
|
||||
|
||||
gcode.process_subcommands_now_P(PSTR("M25"));
|
||||
|
||||
//save the positon
|
||||
//save the position
|
||||
uiCfg.current_x_position_bak = current_position.x;
|
||||
uiCfg.current_y_position_bak = current_position.y;
|
||||
uiCfg.current_z_position_bak = current_position.z;
|
||||
|
@@ -200,7 +200,7 @@ void WifiSerial::flush() {
|
||||
// nop, the interrupt handler will free up space for us
|
||||
}
|
||||
// If we get here, nothing is queued anymore (DRIE is disabled) and
|
||||
// the hardware finished tranmission (TXC is set).
|
||||
// the hardware finished transmission (TXC is set).
|
||||
}
|
||||
|
||||
bool WifiSerial::isHalfDuplex() const { return _serial.pin_rx == NC; }
|
||||
|
Reference in New Issue
Block a user