Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Hideaki Tai
/
omni_main
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e5770c8b
authored
Sep 04, 2019
by
Hideaki Tai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add const uint8_t NUM_WHILL_OMNI = 8
parent
25a6b60b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
include/global.h
+1
-0
lib/BorderXBeePacketizer/BorderXBeePacketizer.h
+1
-1
No files found.
include/global.h
View file @
e5770c8b
...
@@ -16,6 +16,7 @@ static double xbee_cmd_timeout_ms = 300.;
...
@@ -16,6 +16,7 @@ static double xbee_cmd_timeout_ms = 300.;
uint8_t
HARDWARE_ID
=
0xFF
;
uint8_t
HARDWARE_ID
=
0xFF
;
bool
b_need_xbee_init
=
false
;
bool
b_need_xbee_init
=
false
;
const
uint8_t
NUM_WHILL_OMNI
=
8
;
static
constexpr
uint8_t
PIN_EMERGENCY
=
32
;
static
constexpr
uint8_t
PIN_EMERGENCY
=
32
;
static
constexpr
uint8_t
PIN_IRLED_OE
=
17
;
static
constexpr
uint8_t
PIN_IRLED_OE
=
17
;
...
...
lib/BorderXBeePacketizer/BorderXBeePacketizer.h
View file @
e5770c8b
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
}
}
case
WhillXBeeState
:
:
DATA
:
case
WhillXBeeState
:
:
DATA
:
{
{
if
((
buffer
.
id
>
0
)
&&
(
buffer
.
id
<
8
))
// for additional omni
if
((
buffer
.
id
>
0
)
&&
(
buffer
.
id
<
=
NUM_WHILL_OMNI
))
// for additional omni
{
{
if
(
data
==
BorderXBeeProtocol
::
BYTE_FOOTER
)
if
(
data
==
BorderXBeeProtocol
::
BYTE_FOOTER
)
{
{
...
...
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