+++ corrected svn cripplement

This commit is contained in:
masterm 2007-02-19 22:02:01 +00:00
parent 42a38959ff
commit ec2a18e931
8 changed files with 40 additions and 405 deletions

View file

@ -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;