MCPcopy Create free account
hub / github.com/Atarity/Lightpack / SetGamma

Method SetGamma

Software/src/LightpackPluginInterface.cpp:317–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317bool LightpackPluginInterface::SetGamma(QString sessionKey, double gamma)
318{
319 if (lockSessionKeys.isEmpty()) return false;
320 if (lockSessionKeys[0]!=sessionKey) return false;
321 if (gamma >= Profile::Device::GammaMin && gamma <= Profile::Device::GammaMax)
322 {
323 emit updateGamma(gamma);
324 return true;
325 } else
326 return false;
327}
328
329bool LightpackPluginInterface::SetBrightness(QString sessionKey, int brightness)
330{

Callers 1

clientProcessCommandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected