Make pinmode for-loop typing more declarative

This commit is contained in:
GHOSCHT 2023-03-24 16:42:13 +01:00
parent e61ebc390d
commit 83454e1f38

View file

@ -15,7 +15,7 @@ public:
: lightPins{PIN...}, lightActions{actionQueueSize},
lightControllerTask{exec, "control lights", stackDepth,
this, priority, coreID} {
for (auto pin : lightPins) {
for (int pin : lightPins) {
pinMode(pin, OUTPUT);
}
}