mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
fix: correct array declaration for empty lamp in remove_lamp function of DynamicLampComponent
This commit is contained in:
parent
436108d8d7
commit
20d871e909
@ -163,7 +163,7 @@ void DynamicLampComponent::remove_lamp(std::string lamp_name) {
|
||||
}
|
||||
}
|
||||
uint16_t memaddress = 0 + (i * 24);
|
||||
unsigned char[24] empty_lamp;
|
||||
unsigned char empty_lamp[24];
|
||||
for (uint8_t m = 0; m < 24; m++) {
|
||||
empty_lamp[m] = 0xff;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user