esp8266/modpybrtc: pyb_rtc_memory(): Fix copy-paste error.

This commit is contained in:
Paul Sokolovsky 2016-02-08 21:35:36 +02:00
parent 81407729a5
commit 814b1ae3a9

View File

@ -146,7 +146,7 @@ STATIC mp_obj_t pyb_rtc_memory(mp_uint_t n_args, const mp_obj_t *args) {
} }
magic = MEM_MAGIC; magic = MEM_MAGIC;
system_rtc_mem_write(MEM_USER_MAGIC_ADDR, &magic, sizeof(len)); system_rtc_mem_write(MEM_USER_MAGIC_ADDR, &magic, sizeof(magic));
len = bufinfo.len; len = bufinfo.len;
system_rtc_mem_write(MEM_USER_LEN_ADDR, &len, sizeof(len)); system_rtc_mem_write(MEM_USER_LEN_ADDR, &len, sizeof(len));