Resetting the lap counter when a new name is recived
[apps/native/gear-racing-car.git] / src / lap_counter / lap_counter.c
index 0894a87..aa9746d 100644 (file)
@@ -117,6 +117,12 @@ void lap_counter_get_lap_time()
        s_info.last_timestamp.tv_nsec = timestamp.tv_nsec;
 }
 
+void lap_counter_set_start_lap()
+{
+       s_info.last_timestamp.tv_nsec = 0;
+       s_info.last_timestamp.tv_sec = 0;
+}
+
 void lap_counter_shutdown()
 {
        free(s_info.user_name);