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
1f847118
Commit
1f847118
authored
Mar 11, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
75c488e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
ademco_packet.h
include/ademco_packet.h
+3
-6
No files found.
include/ademco_packet.h
View file @
1f847118
...
@@ -238,8 +238,8 @@ struct CongwinFe100Packet
...
@@ -238,8 +238,8 @@ struct CongwinFe100Packet
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
ndx
+=
snprintf
(
data_
+
ndx
,
sizeof
(
data_
)
-
ndx
,
"%08d"
,
static_cast
<
int
>
(
acct
));
// acct
ndx
+=
snprintf
(
data_
+
ndx
,
sizeof
(
data_
)
-
ndx
,
"%08d"
,
static_cast
<
int
>
(
acct
));
// acct
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
'1'
;
// 18
data_
[
ndx
++
]
=
'1'
;
// 18
data_
[
ndx
++
]
=
'8'
;
data_
[
ndx
++
]
=
'8'
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
...
@@ -262,12 +262,10 @@ struct CongwinFe100Packet
...
@@ -262,12 +262,10 @@ struct CongwinFe100Packet
data_
[
ndx
++
]
=
'B'
;
data_
[
ndx
++
]
=
'B'
;
data_
[
ndx
++
]
=
'2'
;
data_
[
ndx
++
]
=
'2'
;
}
else
{
}
else
{
snprintf
(
data_
+
ndx
,
sizeof
(
data_
)
-
ndx
,
"%03d"
,
static_cast
<
int
>
(
evnt
%
1000
));
// event
ndx
+=
snprintf
(
data_
+
ndx
,
sizeof
(
data_
)
-
ndx
,
"%03d"
,
static_cast
<
int
>
(
evnt
%
1000
));
// event
}
}
ndx
+=
3
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
'0'
;
// gg is always 00
data_
[
ndx
++
]
=
'0'
;
// gg is always 00
data_
[
ndx
++
]
=
'0'
;
data_
[
ndx
++
]
=
'0'
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
...
@@ -279,8 +277,7 @@ struct CongwinFe100Packet
...
@@ -279,8 +277,7 @@ struct CongwinFe100Packet
data_
[
ndx
++
]
=
'C'
;
// C
data_
[
ndx
++
]
=
'C'
;
// C
}
}
sprintf
(
data_
+
ndx
,
"%03d"
,
static_cast
<
int
>
(
zone
%
10000
));
ndx
+=
sprintf
(
data_
+
ndx
,
"%03d"
,
static_cast
<
int
>
(
zone
%
10000
));
ndx
+=
3
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
' '
;
data_
[
ndx
++
]
=
'\r'
;
data_
[
ndx
++
]
=
'\r'
;
...
...
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