Skip to content

Commit e13d462

Browse files
committed
esp8266/modesp: flash_read() takes 2 args (fix typo).
1 parent a5aa03a commit e13d462

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/modesp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ STATIC mp_obj_t esp_flash_read(mp_obj_t offset_in, mp_obj_t len_in) {
582582
m_del(byte, buf, len);
583583
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(res == SPI_FLASH_RESULT_TIMEOUT ? ETIMEDOUT : EIO)));
584584
}
585-
STATIC MP_DEFINE_CONST_FUN_OBJ_3(esp_flash_read_obj, esp_flash_read);
585+
STATIC MP_DEFINE_CONST_FUN_OBJ_2(esp_flash_read_obj, esp_flash_read);
586586

587587
STATIC const mp_map_elem_t esp_module_globals_table[] = {
588588
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_esp) },

0 commit comments

Comments
 (0)