Fix index issues
This commit is contained in:
1 parent
4b6eefae65
commit
c7e5a92edf
1 file changed
+4
-4
@@ -56,13 +56,13 @@ void onI2CReceive(int len) {
|
||||
break;
|
||||
|
||||
case CMD_LIGHT_INDEX:
|
||||
uint8_t index = Wire.read();
|
||||
turnOnSingleLed(index);
|
||||
uint8_t lightIndex = Wire.read();
|
||||
turnOnSingleLed(lightIndex);
|
||||
break;
|
||||
|
||||
case CMD_DRAWER_INDEX:
|
||||
uint8_t index = Wire.read();
|
||||
openLock(index);
|
||||
uint8_t drawerIndex = Wire.read();
|
||||
openLock(drawerIndex);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user