Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CalcProgrammer1/OpenRGB
/ hasOn
Method
hasOn
dependencies/hueplusplus-1.0.0/src/Sensor.cpp:60–63 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
58
}
59
60
bool Sensor::hasOn() const
61
{
62
return state.getValue().at(
"config"
).count(
"on"
) != 0;
63
}
64
65
bool Sensor::isOn() const
66
{
Callers
2
TEST_F
Function · 0.80
snippet1
Function · 0.80
Calls
2
getValue
Method · 0.80
count
Method · 0.45
Tested by
1
TEST_F
Function · 0.64