diff options
Diffstat (limited to 'source/Concept/Framework/modules/output')
-rwxr-xr-x | source/Concept/Framework/modules/output/engine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Concept/Framework/modules/output/engine.h b/source/Concept/Framework/modules/output/engine.h index 7b7a044..4c022bb 100755 --- a/source/Concept/Framework/modules/output/engine.h +++ b/source/Concept/Framework/modules/output/engine.h @@ -58,7 +58,7 @@ public: protected:
bool enabled;
- int curSpeed;
+ int16 curSpeed;
//Hardware
volatile uint8* hardwarePort;
@@ -94,16 +94,16 @@ protected: }
public:
- int GetSpeed()
+ int16 GetSpeed()
{
return curSpeed;
}
- void SetSpeed(int newSpeed)
+ void SetSpeed(int16 newSpeed)
{
curSpeed = newSpeed;
- int pwm = abs(newSpeed);
+ uint16 pwm = abs(newSpeed);
if(pwm > 255) pwm = 255;
*pwmSpeed = pwm;
|