Go Down

Topic: RTC DS1307 is resetting to compile time after clicking Reset button (Read 959 times) previous topic - next topic

   RTC DS1307 is resetting to compile time value after clicking Reset button. please suggest me scheme so it wont get set to compile time again and again.

dxw00d

Remove the line from the sketch that tells it to do that. It probably contains 'DateTime(__DATE__, __TIME__)' or similar.

I want to set RTC for once after that  , there should not be any requirement to set RTC. If i remove that line then it gives me compile error.

dxw00d


I want to set RTC for once after that  , there should not be any requirement to set RTC.


So you run it once with that line in, then upload the sketch without that line.


If i remove that line then it gives me compile error.


But you aren't going to tell us what the error is.


PaulS

Quote
But you aren't going to tell us what the error is.

Or what the test of the code looks like.

Go Up