two more "shadowed locals"

In these case, there seem to be no bug, but  simply renaming the "inner" variables improves code readability.
This commit is contained in:
Frank
2023-04-14 13:09:25 +02:00
parent 996d041581
commit 4a3bc486d0
2 changed files with 7 additions and 7 deletions

View File

@@ -300,10 +300,10 @@ byte PinManagerClass::allocateLedc(byte channels)
if (ca >= channels) { //enough free channels
byte in = (i + 1) - ca;
for (byte j = 0; j < ca; j++) {
byte b = in + j;
byte by = b >> 3;
byte bi = b - 8*by;
bitWrite(ledcAlloc[by], bi, true);
byte bChan = in + j;
byte byChan = bChan >> 3;
byte biChan = bChan - 8*byChan;
bitWrite(ledcAlloc[byChan], biChan, true);
}
return in;
}