Skip to content

Commit 6d41a13

Browse files
committed
Update time ESC/GPS responded with settime command
1 parent 4c12fe9 commit 6d41a13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ void update_time(int syear, int smonth, int sday, int shour, int sminute, int ss
152152
tmTime->tm_min = sminute;
153153
tmTime->tm_sec = ssecond;
154154
currentTime = mktime(tmTime);
155+
156+
time_esc_last_responded = currentTime;
157+
time_gps_last_responded = currentTime;
155158
}
156159

157160
////////////////////////////////////////

0 commit comments

Comments
 (0)