Compare commits

..

No commits in common. "8c6784387e7ad83bedcbd9e744ba7346038f759d" and "6960009b361e5f31a25dcb39ba3fe47d0971b3ca" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View file

@ -220,7 +220,7 @@ static inline
uint8_t flash_erase_next_page()
{
uint16_t mode = 0x81; // Page Erase
if (~fs.block & 8)
if (~b & 8)
fs.npages++;
uint8_t n = 0;
if (fs.page && !(fs.page & 0xff) && fs.npages & 0xff00) {

View file

@ -81,7 +81,7 @@ ISR(RTC_CNT_vect, ISR_NAKED)
"subi r24, -1" "\n\t"
"sts clockh, r24" "\n\t"
"lds r24, clockh+1" "\n\t"
"sbci r24, 0" "\n\t"
"sbci r24, -1" "\n\t"
"sts clockh+1, r24" "\n\t"
"2:" "\n\t"
"pop r24" "\n\t"
@ -109,7 +109,7 @@ ISR(RTC_CNT_vect)
if (flag & RTC_CNT_bm)
RTC.CMP += rtc_config[1].val | rtc_config[2].val << 8;
if (flag & RTC_OVF_bm)
clockh += 1;
clock += 1;
return;
}
#endif