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
d1b29132
Commit
d1b29132
authored
Sep 03, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
158dd30f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ademco_detail.h
include/ademco_detail.h
+2
-2
No files found.
include/ademco_detail.h
View file @
d1b29132
...
...
@@ -159,7 +159,7 @@ static char HexChar2Dec(char hex)
else
if
(
hex
==
'l'
||
hex
==
'L'
)
return
0
;
else
{
JLOG_WARN
(
"HexChar2Dec: not a hex char. ({}) (0x{:02X})"
,
hex
,
hex
);
JLOG_WARN
(
"HexChar2Dec: not a hex char. ({}) (0x{:02X})"
,
(
int
)
hex
,
(
unsigned
char
)
hex
);
//assert(0);
return
0
;
}
...
...
@@ -212,7 +212,7 @@ static char Dec2Hex(char d)
}
else
if
(
0x0A
<=
d
&&
d
<=
0x0F
)
{
return
char
(
d
-
0x0A
+
(
char
)
'A'
);
}
else
{
JLOG_ERRO
(
"Dec2Hex: not a 0-f value. ({}) (0x{:02X})"
,
d
,
d
);
JLOG_ERRO
(
"Dec2Hex: not a 0-f value. ({}) (0x{:02X})"
,
(
int
)
d
,
(
unsigned
char
)
d
);
assert
(
0
);
return
'0'
;
}
...
...
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