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
ef034a44
Commit
ef034a44
authored
Aug 26, 2021
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change
parent
bb2b8adc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
hb_detail.h
include/hb_detail.h
+9
-3
No files found.
include/hb_detail.h
View file @
ef034a44
...
...
@@ -2218,7 +2218,7 @@ struct ZoneInfo {
};
uint16_t
zone
=
{};
ZoneType
type
=
{}
;
ZoneType
type
=
ZoneType
::
ZT_NULL
;
MachineStatusOrZoneProperty
prop
;
WirelessAddress
addr
=
{};
...
...
@@ -2232,7 +2232,7 @@ struct ZoneInfo {
void
reset
()
{
zone
=
UINT16_MAX
;
type
=
ZT_
INVALID
;
type
=
ZT_
NULL
;
prop
.
prop
=
ZP_INVALID
;
addr
.
reset
();
}
...
...
@@ -2243,7 +2243,13 @@ struct AllZoneInfo {
//! use extra 1 space, for convenience to use zone as index
ZoneInfo
zones
[
ademco
::
ZoneSentinel
]
=
{};
AllZoneInfo
()
{
for
(
uint16_t
i
=
0
;
i
<
ademco
::
ZoneSentinel
;
i
++
)
{
zones
[
i
].
zone
=
i
;
}
}
AllZoneInfo
()
{
for
(
uint16_t
i
=
0
;
i
<
ademco
::
ZoneSentinel
;
i
++
)
{
zones
[
i
].
zone
=
i
;
zones
[
i
].
type
=
ZT_NULL
;
zones
[
i
].
prop
.
prop
=
ZP_INVALID
;
}
}
bool
isUniqueAddr
(
WirelessAddress
addr
)
const
{
for
(
const
auto
&
z
:
zones
)
{
if
(
z
.
addr
==
addr
)
return
false
;
}
...
...
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