Fix index issues

This commit is contained in:
C0d3v 2026-01-15 19:21:26 +01:00
parent 4b6eefae65
commit c7e5a92edf

View File

@ -56,13 +56,13 @@ void onI2CReceive(int len) {
break; break;
case CMD_LIGHT_INDEX: case CMD_LIGHT_INDEX:
uint8_t index = Wire.read(); uint8_t lightIndex = Wire.read();
turnOnSingleLed(index); turnOnSingleLed(lightIndex);
break; break;
case CMD_DRAWER_INDEX: case CMD_DRAWER_INDEX:
uint8_t index = Wire.read(); uint8_t drawerIndex = Wire.read();
openLock(index); openLock(drawerIndex);
break; break;
} }
} }