Make pinmode for-loop typing more declarative

This commit is contained in:
GHOSCHT 2023-03-24 16:42:13 +01:00
parent 215315bd3a
commit 5de0b22ada
No known key found for this signature in database

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);
}
}