Skip to content

_bleio.Adapter.start_scan does not validate max timeout size #3340

@dhalbert

Description

@dhalbert

The timeout size for an nRF SD scan (if one is given) is 16-bits, which is in units of 10ms. common_hal_bleio_adapter_start_scan() should validate that the incoming timeout will fit. Currently it does not, so any value gets converted to 10ms units and then is truncated to 16 bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions