X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/bb5256eea0dbc764f2f447362e37d62ec060a5dc..79986122b1d8a4aaf015b8d30f20e99d78779342:/avr/timer.asm diff --git a/avr/timer.asm b/avr/timer.asm index b4ce3f5..d6c02c3 100644 --- a/avr/timer.asm +++ b/avr/timer.asm @@ -408,7 +408,7 @@ rtc_get: ldi temp2,3 rcall i2c_read ;get year (stored in RTC-RAM addr. 10h) tst temp - breq rtc_get_e + brmi rtc_get_e ;i2c error ldd temp3,z+1 ;save year ldd temp4,z+2 @@ -419,7 +419,7 @@ rtc_get: ldi temp2,6 rcall i2c_read tst temp - breq rtc_get_e + brmi rtc_get_e ldd temp,z+4 ;get year rol temp