Skip to content

Commit

Permalink
Fix return type on LedDriver functions
Browse files Browse the repository at this point in the history
  • Loading branch information
G. Medina committed Jun 24, 2023
1 parent 1876f5f commit 8f16608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/LedDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void LedDriver::setColorManual()
}
}

float LedDriver::applyDirectionSpeed()
void LedDriver::applyDirectionSpeed()
{
if (robot.ledCtrl.rotationSpeed == 0)
rotationSpeedDirection = 0;
Expand All @@ -105,7 +105,7 @@ float LedDriver::applyDirectionSpeed()
rotationSpeedDirection = rotationSpeedDirection - 2 * PI* floor(rotationSpeedDirection / (2 * PI));
}
}
float LedDriver::applyBlinkingSpeed()
void LedDriver::applyBlinkingSpeed()
{
if (robot.ledCtrl.blinkingSpeed == 0)
{
Expand Down
4 changes: 2 additions & 2 deletions src/LedDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class LedDriver

void setColorParametric();
void setColorManual();
float applyDirectionSpeed();
float applyBlinkingSpeed();
void applyDirectionSpeed();
void applyBlinkingSpeed();
void writeToLED();

NeoPixelBrightnessBus<NeoGrbFeature, Neo800KbpsMethod> strip;
Expand Down

0 comments on commit 8f16608

Please sign in to comment.