Skip to content

Commit 9e7bde3

Browse files
committed
Fixed DimSwitch Example
1 parent 2ee34a7 commit 9e7bde3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/DimSwitch/DimSwitch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool onPowerLevel(const String &deviceId, int &powerLevel) {
5454
return true;
5555
}
5656

57-
bool onAdjustPowerLevel(const String &deviceId, int levelDelta) {
57+
bool onAdjustPowerLevel(const String &deviceId, int &levelDelta) {
5858
device_state.powerLevel += levelDelta;
5959
Serial.printf("Device %s power level changed about %i to %d\r\n", deviceId.c_str(), levelDelta, device_state.powerLevel);
6060
levelDelta = device_state.powerLevel;

0 commit comments

Comments
 (0)