Answer the question
In order to leave comments, you need to log in
LPC RTC, does the time setting work crookedly?
void setDateTime(void){
struct typeDateTimeSend DateTime;
struct tm loc_time;
DateTime = *((struct typeDateTimeSend*)&OutReport[1]);
led7.setNumLed7(DateTime.dm);
loc_time.tm_sec = DateTime.ss;
loc_time.tm_min = DateTime.mm;
loc_time.tm_hour = DateTime.hh;
loc_time.tm_mday = DateTime.dm;
loc_time.tm_mon = DateTime.mh;
loc_time.tm_year = DateTime.yy;
correct_time_struct(&loc_time);
correct_data_struct(&loc_time);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question