Use _BV macros, patch up others
This commit is contained in:
parent
209f5f21e0
commit
ff13070b59
14 changed files with 130 additions and 127 deletions
|
|
@ -364,7 +364,7 @@ bool SdVolume::init(Sd2Card* dev, uint8_t part) {
|
|||
blocksPerCluster_ = fbs->sectorsPerCluster;
|
||||
// determine shift that is same as multiply by blocksPerCluster_
|
||||
clusterSizeShift_ = 0;
|
||||
while (blocksPerCluster_ != BIT(clusterSizeShift_)) {
|
||||
while (blocksPerCluster_ != _BV(clusterSizeShift_)) {
|
||||
// error if not power of 2
|
||||
if (clusterSizeShift_++ > 7) goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue