Commit e5770c8b by Hideaki Tai

add const uint8_t NUM_WHILL_OMNI = 8

parent 25a6b60b
......@@ -16,6 +16,7 @@ static double xbee_cmd_timeout_ms = 300.;
uint8_t HARDWARE_ID = 0xFF;
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_IRLED_OE = 17;
......
......@@ -85,7 +85,7 @@ public:
}
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)
{
......
  • Markdown is supported
    0% or
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or sign in to comment