Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
ed2fbc4f
Commit
ed2fbc4f
authored
Dec 04, 2021
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g250::MachineInfotoKeyboard::LCD::toZone
parent
dad84844
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
hb_detail.h
include/hb_detail.h
+14
-0
No files found.
include/hb_detail.h
View file @
ed2fbc4f
...
...
@@ -1958,6 +1958,20 @@ struct MachineInfoToKeyboard {
wdata
[
0
]
=
toWChar
(
h
);
wdata
[
1
]
=
toWChar
(
d
);
wdata
[
2
]
=
toWChar
(
s
);
wdata
[
3
]
=
L'\0'
;
return
wdata
;
}
uint16_t
toZone
()
const
{
uint16_t
zone
=
0
;
if
(
0
<=
h
&&
h
<=
9
)
{
zone
+=
h
*
100
;
}
if
(
0
<=
d
&&
d
<=
9
)
{
zone
+=
d
*
10
;
}
if
(
0
<=
s
&&
s
<=
9
)
{
zone
+=
s
;
}
return
zone
;
}
};
// 1~4
...
...
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