- todos
- test driving
This commit is contained in:
@@ -112,7 +112,7 @@ void TestMode::abortManeuver() {
|
||||
}
|
||||
|
||||
uint8_t TestMode::getRemainingManeuverTime() const {
|
||||
if (busy)
|
||||
if (this->busy)
|
||||
return (uint8_t) ((this->maneuverTime - (millis() - this->actionStart)) / 1000);
|
||||
return 0;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ uint8_t TestMode::getRemainingManeuverTime() const {
|
||||
bool TestMode::engineInit(int16_t powerPercentage, int16_t seconds) {
|
||||
if (this->busy)
|
||||
return false;
|
||||
if (powerPercentage >= 100 || powerPercentage <= -100)
|
||||
if (powerPercentage > 100 || powerPercentage < -100)
|
||||
return false;
|
||||
if (seconds < 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user