summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/output/dribbler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Concept/Framework/modules/output/dribbler.h')
-rwxr-xr-xsource/Concept/Framework/modules/output/dribbler.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/Concept/Framework/modules/output/dribbler.h b/source/Concept/Framework/modules/output/dribbler.h
index b11af69..8544698 100755
--- a/source/Concept/Framework/modules/output/dribbler.h
+++ b/source/Concept/Framework/modules/output/dribbler.h
@@ -66,19 +66,20 @@ protected:
{
*hardwarePort |= pinForward;
*hardwarePort &= ~pinReverse;
+ *portPower |= pinPower;
}
else if(curSpeed < 0)
{
*hardwarePort |= pinReverse;
*hardwarePort &= ~pinForward;
+ *portPower |= pinPower;
}
else
{
*hardwarePort |= pinForward;
*hardwarePort |= pinReverse;
- }
-
- *portPower |= pinPower;
+ *portPower &= ~pinPower;
+ }
}
else
{