~aleteoryx/muditaos

30418184b1048a8605c37af531f8b6bfe6fe5a1f — Lefucjusz 1 year, 9 months ago 25a5d90 pure_1.12.0-rc.2
[MOS-1061] Fix screen backlight flash when turning off

Fix of the issue that screen backlight
would sometimes flash lightly when the
phone is turning off.
2 files changed, 6 insertions(+), 7 deletions(-)

M module-bsp/board/rt1051/puretx/board.cpp
M pure_changelog.md
M module-bsp/board/rt1051/puretx/board.cpp => module-bsp/board/rt1051/puretx/board.cpp +4 -6
@@ 1,4 1,4 @@
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "bsp.hpp"


@@ 15,7 15,7 @@ namespace
        using namespace drivers;
        auto gpio_power = DriverGPIO::Create(static_cast<GPIOInstances>(BoardDefinitions::POWER_SWITCH_HOLD_GPIO),
                                             DriverGPIOParams{});
        gpio_power->WritePin(static_cast<uint32_t>(BoardDefinitions::POWER_SWITCH_HOLD_BUTTON), 0);
        gpio_power->WritePin(static_cast<std::uint32_t>(BoardDefinitions::POWER_SWITCH_HOLD_BUTTON), 0);
    }

    void board_reset()


@@ 31,11 31,9 @@ namespace bsp
        switch (state) {
        case rebootState::none:
            break;
        case rebootState::poweroff:
            board_shutdown();
            break;
        case rebootState::reboot:
            board_reset();
        case rebootState::poweroff:
            board_reset(); // Reset will result in powering off the CPU if USB is disconnected due to hardware design
            break;
        }


M pure_changelog.md => pure_changelog.md +2 -1
@@ 3,7 3,8 @@
## Unreleased

### Fixed
Fixed no response when editing a contact via Center to have the same number as another
* Fixed no response when editing a contact via Center to have the same number as another.
* Fixed occasional screen backlight flash when turning off the phone.

### Added