MCPcopy Create free account
hub / github.com/FastLED/FastLED / ScopedPowerScalingExponent

Method ScopedPowerScalingExponent

tests/power_mgt.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12struct ScopedPowerScalingExponent {
13 explicit ScopedPowerScalingExponent(float exponent)
14 : previous_model(get_power_model()) {
15 PowerModelRGB updated_model = previous_model;
16 updated_model.exponent = exponent;
17 set_power_model(updated_model);
18 }
19
20 ~ScopedPowerScalingExponent() {
21 set_power_model(previous_model);

Callers

nothing calls this directly

Calls 2

get_power_modelFunction · 0.85
set_power_modelFunction · 0.50

Tested by

no test coverage detected