projects
/
apps
/
native
/
gear-racing-car.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Resetting the lap counter when a new name is recived
[apps/native/gear-racing-car.git]
/
src
/
lap_counter
/
lap_counter.c
diff --git
a/src/lap_counter/lap_counter.c
b/src/lap_counter/lap_counter.c
index
0894a87
..
aa9746d
100644
(file)
--- a/
src/lap_counter/lap_counter.c
+++ b/
src/lap_counter/lap_counter.c
@@
-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);