mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-05 20:33:38 +01:00
Add const statement to several variables
This commit is contained in:
@@ -48,7 +48,7 @@ void LedSingleClass::init(Scheduler* scheduler)
|
||||
_blinkTimeout.set(500);
|
||||
turnAllOn();
|
||||
|
||||
auto& pin = PinMapping.get();
|
||||
const auto& pin = PinMapping.get();
|
||||
for (uint8_t i = 0; i < PINMAPPING_LED_COUNT; i++) {
|
||||
|
||||
if (pin.led[i] >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user