Modern cast cleanup (#462)

* static_cast

* cleanup and building
This commit is contained in:
Michael Miller
2021-04-13 10:45:35 -07:00
committed by GitHub
parent 2480634ca7
commit 5e492ea925
12 changed files with 41 additions and 41 deletions
@@ -32,7 +32,7 @@ NeoPixelAnimator animations(Animation_COUNT);
void CycleAnimation(const AnimationParam& param)
{
// calculate which segment should be on using the animation progress
uint8_t bitfield = 1 << ( (uint8_t)(param.progress * LedSegment_G) % LedSegment_G);
uint8_t bitfield = 1 << ( static_cast<uint8_t>(param.progress * LedSegment_G) % LedSegment_G);
// instant a digit with that segment on
SevenSegDigit digit(bitfield, brightness);
// apply it to the strip