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
ed202b33
Commit
ed202b33
authored
Oct 07, 2014
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always initialize variables!
parent
7039ad0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
compass.c
sw/freertos/src/apps/compass.c
+2
-2
No files found.
sw/freertos/src/apps/compass.c
View file @
ed202b33
...
...
@@ -41,7 +41,7 @@
static
int
x_lcd
,
y_lcd
;
static
float
sina
,
cosa
;
static
int
calib
;
static
int
calib
=
0
;
lsm303_smpl
iron
;
static
void
compass_redraw
(
struct
ui_widget
*
w
)
...
...
@@ -132,7 +132,7 @@ void compass_main(void *params)
/*main loop*/
while
(
1
)
{
if
(
xQueueReceive
(
appQueue
,
&
evt
,
10
0
/
portTICK_RATE_MS
))
{
if
(
xQueueReceive
(
appQueue
,
&
evt
,
5
0
/
portTICK_RATE_MS
))
{
switch
(
evt
.
type
)
{
case
BUTTON_PRESSED
:
if
(
evt
.
data
.
button
==
BUT_TR
)
...
...
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