GCC Code Coverage Report


Directory: ./
File: sensors/MultiSensorSource.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2 /*
3 * This file is part of the Falcon Player (FPP) and is Copyright (C)
4 * 2013-2022 by the Falcon Player Developers.
5 *
6 * The Falcon Player (FPP) is free software, and is covered under
7 * multiple Open Source licenses. Please see the included 'LICENSES'
8 * file for descriptions of what files are covered by each license.
9 *
10 * This source file is covered under the LGPL v2.1 as described in the
11 * included LICENSE.LGPL file.
12 */
13
14 #include "Sensors.h"
15 #include "fpp-json-fwd.h"
16 #include "../util/GPIOUtils.h"
17 #include <array>
18 #include <mutex>
19
20 class MultiSensorSource : public SensorSource {
21 public:
22 MultiSensorSource(Json::Value& config);
23 virtual ~MultiSensorSource();
24
25 virtual void Init(std::map<int, std::function<bool(int)>>& callbacks) override;
26
27 virtual void update(bool forceInstant = false) override;
28 virtual void enable(int id) override;
29 virtual int32_t getValue(int id) override;
30
31 virtual void lockToGroup(int i) override;
32
33 ✗ virtual bool isOK() const override { return !sources.empty(); }
34
35 private:
36 std::vector<SensorSource*> sources;
37 std::vector<int32_t> channels;
38 };
39