Skip to content

HCI.cpp:991:7: error: case value '10' not in enumerated type 'LE_META_EVENT' #346

@franciozzy

Description

@franciozzy

I'm trying to compile the "scan" example from 1.3.6 on Arduino IDE 2.2.1 and running into a few errors including the following:

~/Documents/Arduino/libraries/ArduinoBLE/src/utility/HCI.cpp:1272:30: warning: missing initializer for member 'HCIClass::handleEventPkt(uint8_t, uint8_t*)::F4Params::Z' [-Wmissing-field-initializers]
~/Documents/Arduino/libraries/ArduinoBLE/src/utility/HCI.cpp:991:7: error: case value '10' not in enumerated type 'LE_META_EVENT' [-Werror=switch]
       case 0x0A:{

Looks like a legit error as the enum LE_META_EVENT (see HCI.h) only has values from 1 to 9 and the switch statement checks for 10.

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy