Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
92c0bc60
Commit
92c0bc60
authored
Jan 22, 2015
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed not storing to file issue and corrected track file name on file open
parent
9743c334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gpsbkgnd_task.c
sw/freewatch/src/gpsbkgnd_task.c
+6
-4
No files found.
sw/freewatch/src/gpsbkgnd_task.c
View file @
92c0bc60
...
...
@@ -107,8 +107,9 @@ static void gpsbkgnd_task(void *params)
*/
ptrack
=
track
;
track
=
setting_get
(
&
setting_tracking
);
if
((
track
)
&&
(
!
ptrack
||
firstrun
))
{
take_storage
();
if
(
track
)
{
if
(
!
ptrack
||
firstrun
)
take_storage
();
}
else
if
(
ptrack
)
{
give_storage
();
}
...
...
@@ -117,8 +118,9 @@ static void gpsbkgnd_task(void *params)
if
(
gps_fixed
())
{
if
(
setting_get
(
&
setting_gps_sets_time
))
update_time
();
if
(
track
)
if
(
track
)
{
store_track
();
}
}
if
(
firstrun
)
...
...
@@ -199,7 +201,7 @@ static void store_track()
*/
time
=
clock_get_time
();
sprintf
(
fname
,
"track_%d-%02d-%02d_%02dh%02dm%02ds.txt"
,
time
.
tm_year
,
time
.
tm_mon
,
time
.
tm_mday
,
1900
+
time
.
tm_year
,
1
+
time
.
tm_mon
,
time
.
tm_mday
,
time
.
tm_hour
,
time
.
tm_min
,
time
.
tm_sec
);
open
=
f_open
(
&
f
,
fname
,
FA_CREATE_ALWAYS
|
FA_WRITE
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment