|
1 |
| -// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. |
| 1 | +// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved. |
2 | 2 | // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
3 | 3 |
|
4 | 4 | #include "CPUModeTestWindow.hpp"
|
@@ -134,9 +134,9 @@ namespace gui
|
134 | 134 | permanentFreqSpinner = new gui::TextSpinnerBox(permanentFreqBody, {"OFF", "ON"}, Boundaries::Continuous);
|
135 | 135 | permanentFreqSpinner->setMinimumSize(100, 30);
|
136 | 136 | auto ret =
|
137 |
| - application->async_call<sys::IsCpuPernament, sys::IsCpuPernamentResponse>(service::name::system_manager); |
| 137 | + application->async_call<sys::IsCpuPermanent, sys::IsCpuPermanentResponse>(service::name::system_manager); |
138 | 138 | application->sync(ret);
|
139 |
| - permanentFreqSpinner->setCurrentValue(ret.getResult().pernament ? "ON" : "OFF"); |
| 139 | + permanentFreqSpinner->setCurrentValue(ret.getResult().permanent ? "ON" : "OFF"); |
140 | 140 |
|
141 | 141 | permanentFreqBody->inputCallback = [&](Item &item, const InputEvent &event) {
|
142 | 142 | auto ret = permanentFreqSpinner->onInput(event);
|
@@ -193,10 +193,10 @@ namespace gui
|
193 | 193 | newFreqBody->inputCallback = [&](Item &item, const InputEvent &event) {
|
194 | 194 | auto ret = currentFreqSpinner->onInput(event);
|
195 | 195 |
|
196 |
| - auto async = application->async_call<sys::IsCpuPernament, sys::IsCpuPernamentResponse>( |
| 196 | + auto async = application->async_call<sys::IsCpuPermanent, sys::IsCpuPermanentResponse>( |
197 | 197 | service::name::system_manager);
|
198 | 198 | application->sync(async);
|
199 |
| - if (async.getResult().pernament) { |
| 199 | + if (async.getResult().permanent) { |
200 | 200 | application->bus.sendUnicastSync(
|
201 | 201 | std::make_shared<sys::HoldCpuFrequencyPermanentlyMessage>(
|
202 | 202 | magic_enum::enum_cast<bsp::CpuFrequencyMHz>(std::stoi(currentFreqSpinner->getCurrentValue()))
|
|
0 commit comments