forgot to read back after reset

This commit is contained in:
Philippe Teuwen 2020-10-15 22:57:57 +02:00
commit f39131f5f0
2 changed files with 8 additions and 0 deletions

View file

@ -250,6 +250,10 @@ local function main(args)
local wordstr14b = ('%08X'):format(word14b)
if (wordstr14b == '00000000') then
reset(wr_value, password)
word14b, err14b = core.em4x05_read(14, password)
if err14b then
return oops(err14b)
end
end
if (wordstr14b ~= rd_value) then
local word15b, err15b = core.em4x05_read(15, password)