We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3158bb2 + b68c916 commit cc3939dCopy full SHA for cc3939d
src/DriverPins.h
@@ -320,8 +320,9 @@ class DriverPins {
320
// setup spi
321
bool result = true;
322
for (auto &tmp : spi) {
323
- if (tmp.function == PinFunction::SD && sd_active)
324
- result &= tmp.begin();
+ if (tmp.function == PinFunction::SD)
+ if (sd_active)
325
+ result &= tmp.begin();
326
else
327
result &= tmp.begin();
328
}
0 commit comments