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
9e39b8c3
Commit
9e39b8c3
authored
Oct 05, 2014
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status_bar: Fixed battery indicator.
parent
4940a470
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
status_bar.c
sw/freertos/src/apps/widgets/status_bar.c
+2
-1
No files found.
sw/freertos/src/apps/widgets/status_bar.c
View file @
9e39b8c3
...
...
@@ -68,7 +68,7 @@ static void status_bar_event(struct ui_widget *w, const struct event *evt)
case
GPS_OFF
:
memcpy
(
&
gps_ico
,
0
,
sizeof
(
struct
rle_bitmap
));
w
->
flags
|=
WF_DIRTY
;
// fall-through
break
;
case
BATTERY_STATUS
:
if
(
abs
(
percentage
-
evt
->
data
.
battery
.
percentage
)
>
5
||
...
...
@@ -77,6 +77,7 @@ static void status_bar_event(struct ui_widget *w, const struct event *evt)
charging
=
evt
->
data
.
battery
.
charging
;
w
->
flags
|=
WF_DIRTY
;
}
break
;
}
}
...
...
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