From 30418184b1048a8605c37af531f8b6bfe6fe5a1f Mon Sep 17 00:00:00 2001 From: Lefucjusz Date: Thu, 15 Feb 2024 14:28:44 +0100 Subject: [PATCH] [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. --- module-bsp/board/rt1051/puretx/board.cpp | 10 ++++------ pure_changelog.md | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/module-bsp/board/rt1051/puretx/board.cpp b/module-bsp/board/rt1051/puretx/board.cpp index 0d534eb09afb803057eb714ff774b9f0b1e2c59a..4f680406c71b56735ab22240e15a6d0189dc5ea7 100644 --- a/module-bsp/board/rt1051/puretx/board.cpp +++ b/module-bsp/board/rt1051/puretx/board.cpp @@ -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(BoardDefinitions::POWER_SWITCH_HOLD_GPIO), DriverGPIOParams{}); - gpio_power->WritePin(static_cast(BoardDefinitions::POWER_SWITCH_HOLD_BUTTON), 0); + gpio_power->WritePin(static_cast(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; } diff --git a/pure_changelog.md b/pure_changelog.md index 641be88ac3a92f58e06faf5a79c5fb23de5b9633..0837c962b14342b2729469c530b2b5c26b34cb14 100644 --- a/pure_changelog.md +++ b/pure_changelog.md @@ -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