Closed
Description
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.