// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#include "service-evtmgr/torch.hpp"
#include "bsp/torch/torch.hpp"
// Static API for torch
namespace event::service::api
{
bool isTorchOn()
{
auto isOn = bsp::torch::getState();
return isOn == bsp::torch::State::On;
}
} // namespace event::service::api