We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee34a7 commit 9e7bde3Copy full SHA for 9e7bde3
examples/DimSwitch/DimSwitch.ino
@@ -54,7 +54,7 @@ bool onPowerLevel(const String &deviceId, int &powerLevel) {
54
return true;
55
}
56
57
-bool onAdjustPowerLevel(const String &deviceId, int levelDelta) {
+bool onAdjustPowerLevel(const String &deviceId, int &levelDelta) {
58
device_state.powerLevel += levelDelta;
59
Serial.printf("Device %s power level changed about %i to %d\r\n", deviceId.c_str(), levelDelta, device_state.powerLevel);
60
levelDelta = device_state.powerLevel;
0 commit comments