Skip to content

Redeclaration of BLECharacteristic::write32(int) #520

@dzervas

Description

@dzervas

uint16_t BLECharacteristic::write32(int num)
{
return write32( (uint32_t) num );
}
uint16_t BLECharacteristic::write32(int32_t num)
{
return write32( (uint32_t) num );
}

write32 is implemented for both int and int32_t - isn't this practically a redeclaration?

I have no problem compiling the library, but when I try to generate Rust bindings using bindgen I get (internally uses clang):

/home/dzervas/.platformio/packages/framework-arduinoadafruitnrf52/libraries/Bluefruit52Lib/src/BLECharacteristic.h:132:14: error: class member cannot be redeclared
/home/dzervas/.platformio/packages/framework-arduinoadafruitnrf52/libraries/Bluefruit52Lib/src/BLECharacteristic.h:131:14: note: previous declaration is here

I know though that my use case is very specific and if it causes problems it's better if this doesn't get fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions