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
46fb09f2
Commit
46fb09f2
authored
Aug 26, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpsapp: Now displays UTC time from GPS
parent
29d47973
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
Makefile
sw/gps/Makefile
+9
-0
gpsapp.c
sw/gps/gpsapp.c
+8
-4
No files found.
sw/gps/Makefile
View file @
46fb09f2
...
...
@@ -163,7 +163,16 @@ C_SRC += \
../common/gfx/graphics.c
\
../common/gfx/ui.c
\
../common/gfx/font_helv11.c
\
../common/gfx/font_helv17.c
\
../common/gfx/font_helv17b.c
\
../common/gfx/font_helv22b.c
\
../common/gfx/font_helv29.c
\
../common/gfx/font_helv38b.c
\
../common/gfx/font_luct38.c
\
../common/gfx/font_xm16x25b.c
\
../common/gfx/font_xm4x5.c
\
../common/gfx/font_xm4x6.c
\
../common/gfx/font_xm5x8.c
\
../common/udelay.c
\
gpsapp.c
...
...
sw/gps/gpsapp.c
View file @
46fb09f2
...
...
@@ -57,12 +57,16 @@ static int i = 0;
static
void
gps_redraw
(
struct
ui_widget
*
w
)
{
char
buf
[
4
];
char
buf
[
16
];
struct
gps_utc
utc
;
gps_get_utc
(
&
utc
);
i
+=
2
;
gfx_clear
(
&
w
->
dc
,
0
);
sprintf
(
buf
,
"%d"
,
i
);
gfx_text
(
&
w
->
dc
,
&
font_helv38b
,
0
,
0
,
buf
,
1
);
sprintf
(
buf
,
"%d:%d:%d"
,
utc
.
hr
,
utc
.
min
,
utc
.
sec
);
gfx_text
(
&
w
->
dc
,
&
font_helv17b
,
0
,
0
,
buf
,
0
);
}
static
void
gps_event
(
struct
ui_widget
*
w
,
const
struct
event
*
evt
)
...
...
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