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
751c0546
Commit
751c0546
authored
Oct 08, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app still hardfaults due to gps tracking
parent
367c5f6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
gpsbkgnd_task.c
sw/freertos/src/gpsbkgnd_task.c
+2
-7
No files found.
sw/freertos/src/gpsbkgnd_task.c
View file @
751c0546
...
...
@@ -148,8 +148,6 @@ static void gpsbkgnd_task(void *params)
gpstime
.
min
+
setting_get
(
&
setting_gmt_ofs_min
),
gpstime
.
sec
);
open
=
f_open
(
&
f
,
fname
,
FA_CREATE_ALWAYS
|
FA_WRITE
);
if
(
!
open
)
f_lseek
(
&
f
,
0
);
}
else
{
/*
* When we've opened (f_open() returns 0 on success), start
...
...
@@ -157,10 +155,7 @@ static void gpsbkgnd_task(void *params)
*/
gps_get_coord
(
&
gpscoord
,
2
);
sprintf
(
buf
,
"%3.7f,%3.7f
\n
"
,
gpscoord
.
lat
,
gpscoord
.
lon
);
usbdbg_puts
(
buf
);
FRESULT
r
=
f_write
(
&
f
,
buf
,
strlen
(
buf
),
&
dummy
);
sprintf
(
buf
,
"r=%d
\r\n
"
,
r
);
usbdbg_puts
(
buf
);
f_write
(
&
f
,
buf
,
strlen
(
buf
),
&
dummy
);
}
}
...
...
@@ -180,7 +175,7 @@ static void gpsbkgnd_task(void *params)
/* Tickle tasks waiting for the GPS */
e
.
type
=
GPS_TICK
;
xQueueSendToBack
(
appQueue
,
(
void
*
)
&
e
,
0
);
xQueueSendToBack
(
appQueue
,
&
e
,
0
);
}
void
gpsbkgnd_init
()
...
...
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