~aleteoryx/muditaos

8d1da669365f6d3ace09617006cf84e684cbde8d — Bartosz 2 years ago 494121a
[MOS-237] Removed unnecessary workaround for system reboot

Removed workaround for rebooting into recovery (update)
2 files changed, 1 insertions(+), 22 deletions(-)

M module-sys/SystemManager/SystemManagerCommon.cpp
M products/PurePhone/PurePhoneMain.cpp
M module-sys/SystemManager/SystemManagerCommon.cpp => module-sys/SystemManager/SystemManagerCommon.cpp +1 -4
@@ 84,10 84,7 @@ namespace sys

        namespace update
        {
            static constexpr std::array whitelist = {service::name::evt_manager,
                                                     service::name::cellular,
                                                     service::name::eink,
                                                     service::name::service_desktop};
            static constexpr std::array whitelist = {service::name::evt_manager, service::name::cellular};
        }

        template <typename T>

M products/PurePhone/PurePhoneMain.cpp => products/PurePhone/PurePhoneMain.cpp +0 -18
@@ 108,23 108,6 @@
#include <SEGGER/SEGGER_SYSVIEW.h>
#endif

void atexit_cleanup_handler()
{
    LOG_INFO("Starting clean up");
}

class Cleanup // TODO is this required? It doesn't seem to do anything productive
{
  public:
    ~Cleanup()
    {
        const int result_2 = std::atexit(atexit_cleanup_handler);
        if (result_2 != 0) {
            LOG_FATAL("at exit failed");
        }
    }
};

int main()
{
    constexpr auto ApplicationName = "PurePhone";


@@ 300,7 283,6 @@ int main()
    LOG_INFO("commit: %s version: %s branch: %s", GIT_REV, VERSION, GIT_BRANCH);
    cpp_freertos::Thread::StartScheduler();
    LOG_INFO("Scheduler is terminated properly");
    Cleanup cleanup;

    return 0;
}