Skip to content

initial pin value not retained #5462

Closed
Closed
@thinkberg

Description

@thinkberg

Description

  • Type: Bug
  • Priority: Minor

Bug

Target
NRF52

mbed-os sha:
e62a1b923 (HEAD -> mbed-os-5.6, tag: mbed_lib_rev154, tag: mbed-os-5.6.3)

Expected behavior

DigitalOut led(LED1, 1); should have the pint be set to HIGH output.

Actual behavior

In the gpio_mode(), the pin is resetted (gpiote_pin_uninit) and the output value gets lost during initialization of DigitalOut as it is not saved anywhere in the config.

Steps to reproduce

Simply create a DigitalOut led(pin, 1) with an LED connected to the pin that requires HIGH to be off.

screen shot 2017-11-09 at 09 37 06

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions