Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Esp.cpp
Remove useless comments
  • Loading branch information
devyte authored Oct 5, 2019
commit 11d4f9e7f4a9314f490f017d0a9e4b5018a93735
4 changes: 2 additions & 2 deletions cores/esp8266/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ bool EspClass::flashEraseSector(uint32_t sector) {
#if PUYA_SUPPORT
static int spi_flash_write_puya(uint32_t offset, uint32_t *data, size_t size) {
if (data == nullptr) {
return SPI_FLASH_RESULT_ERR; // SPI_FLASH_RESULT_ERR
return SPI_FLASH_RESULT_ERR;
}
// PUYA flash chips need to read existing data, update in memory and write modified data again.
static uint32_t *flash_write_puya_buf = nullptr;
Expand All @@ -589,7 +589,7 @@ static int spi_flash_write_puya(uint32_t offset, uint32_t *data, size_t size) {
// No need to ever free this, since the flash chip will never change at runtime.
if (flash_write_puya_buf == nullptr) {
// Memory could not be allocated.
return SPI_FLASH_RESULT_ERR; // SPI_FLASH_RESULT_ERR
return SPI_FLASH_RESULT_ERR;
}
}

Expand Down