Skip to content

Commit 814b1ae

Browse files
committed
esp8266/modpybrtc: pyb_rtc_memory(): Fix copy-paste error.
1 parent 8140772 commit 814b1ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/modpybrtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ STATIC mp_obj_t pyb_rtc_memory(mp_uint_t n_args, const mp_obj_t *args) {
146146
}
147147

148148
magic = MEM_MAGIC;
149-
system_rtc_mem_write(MEM_USER_MAGIC_ADDR, &magic, sizeof(len));
149+
system_rtc_mem_write(MEM_USER_MAGIC_ADDR, &magic, sizeof(magic));
150150
len = bufinfo.len;
151151
system_rtc_mem_write(MEM_USER_LEN_ADDR, &len, sizeof(len));
152152

0 commit comments

Comments
 (0)