~aleteoryx/muditaos

e1a73af200d5c846f3e844cb431e048a19a0ccb0 — Lefucjusz 2 years ago e9e1f31
[MOS-176] Fix long turn off time

Fix of the issue that resulted in long
turn off time of the phone, which was
caused by unfortunate coincidence
of functions names - as a result the
one from the included header file was
called instead of the one from the
anonymous namespace inside the file,
what resulted on not cutting off
board power until the watchdog
triggered.
2 files changed, 4 insertions(+), 3 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 +3 -3
@@ 1,4 1,4 @@
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "bsp.hpp"


@@ 8,7 8,7 @@

namespace
{
    void board_power_off()
    void board_shutdown()
    {
        /// No memory allocation here as this specific GPIO was initialized at the startup. We are just grabbing here a
        /// reference to the already existing object.


@@ 32,7 32,7 @@ namespace bsp
        case rebootState::none:
            break;
        case rebootState::poweroff:
            board_power_off();
            board_shutdown();
            break;
        case rebootState::reboot:
            board_reset();

M pure_changelog.md => pure_changelog.md +1 -0
@@ 81,6 81,7 @@
* Fixed navigation through the ringtone preview list to automatically switch playback to the currently selected option
* Fixed crash when pressing button after turning off the phone with USB cable connected
* Fixed notification on the home screen shouldn't be bolded
* Fixed long phone shutdown time

## [1.5.0 2022-12-20]