~aleteoryx/muditaos

ref: 91da0239aa209ee625d47436d4f17a80d05ec790 muditaos/module-services/service-evtmgr/screen-light-control/ScreenLightControlParameters.cpp -rw-r--r-- 629 bytes
91da0239 — Maciej Gibowicz [EGD-7481] Add user heap stats to puregdb 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "ScreenLightControlParameters.hpp"

#include <gsl/assert>

namespace screen_light_control
{
    auto Parameters::getAutoModeParams() const noexcept -> const AutomaticModeParameters &
    {
        Expects(hasAutoModeParams());
        return autoModeParams.value();
    }

    auto Parameters::getManualModeParams() const noexcept -> ManualModeParameters
    {
        Expects(hasManualModeParams());
        return manualModeParams.value();
    }
} // namespace screen_light_control