MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / hasUserTest

Method hasUserTest

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:145–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145bool Sensor::hasUserTest() const
146{
147 return state.getValue().at("config").count("usertest") != 0;
148}
149void Sensor::setUserTest(bool enabled)
150{
151 sendPutRequest("/config", nlohmann::json {{"usertest", enabled}}, CURRENT_FILE_INFO);

Callers 1

TEST_FFunction · 0.80

Calls 2

getValueMethod · 0.80
countMethod · 0.45

Tested by 1

TEST_FFunction · 0.64