You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, every other method in this file was changed to use volatile memory operations, but this one method was fixed. I've given the file two passes over checking to see if there are any other nonvolatile memops on registers but this seems to be the only one. Now fixed.
Thanks for raising this!
I've released v0.2.7 which contains the fix for this issue.
I was writing a small programs that uses the internal EEPROM of the ATmega328P, when I noticed that no writing was occuring.
I was using
to start writing to the EEPROM, but the memory was unchanged.
When I replaced the above code with the following:
it worked like a charme.
I might be mistaken, but after digging through the
Register
code, I noticed thatRegister::set
is not using volatile_writeruduino/src/register.rs
Lines 53 to 57 in 302095d
while
Register::unset
,Register::write
, etc are doing so. Is there a particular reason for this, that I may not understand yet?ruduino/src/register.rs
Lines 70 to 74 in 302095d
Thanks!
The text was updated successfully, but these errors were encountered: