mirror of
https://github.com/wled/WLED.git
synced 2025-07-12 21:36:32 +00:00
unique_ptr fix
This commit is contained in:
parent
a5277ff4a0
commit
4271588ecd
@ -942,8 +942,8 @@ void BusManager::on() {
|
|||||||
uint8_t pins[2] = {255,255};
|
uint8_t pins[2] = {255,255};
|
||||||
if (bus->isDigital() && bus->getPins(pins)) {
|
if (bus->isDigital() && bus->getPins(pins)) {
|
||||||
if (pins[0] == LED_BUILTIN || pins[1] == LED_BUILTIN) {
|
if (pins[0] == LED_BUILTIN || pins[1] == LED_BUILTIN) {
|
||||||
BusDigital *b = static_cast<BusDigital*>(bus);
|
BusDigital &b = static_cast<BusDigital&>(*bus);
|
||||||
b->begin();
|
b.begin();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user