mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 05:09:32 +00:00
fix program infinity mod
This commit is contained in:
@ -168,7 +168,8 @@ void BallEXT_Handler() {
|
||||
}
|
||||
|
||||
if (currentInfo.program.currentBallCount + 1
|
||||
< currentInfo.program.program.header.countRepeat) {
|
||||
< currentInfo.program.program.header.countRepeat
|
||||
|| currentInfo.program.program.header.countRepeat == 0) {
|
||||
currentInfo.program.currentBallCount++;
|
||||
} else {
|
||||
stopShooting();
|
||||
@ -266,8 +267,9 @@ void shotApply(Shot *shot) {
|
||||
shot->rotationVertical);
|
||||
setRollersSpeed(shot->speedRollerTop, shot->speedRollerBottom);
|
||||
setScrewkSpeed(shot->speedScrew);
|
||||
noBallTimeout = MIN(calculatePeriod(
|
||||
shot->speedScrew) * NOBALL_TIMEOUT_MULTIPLIER, 30000);
|
||||
noBallTimeout = MIN(
|
||||
calculatePeriod( shot->speedScrew) * NOBALL_TIMEOUT_MULTIPLIER,
|
||||
30000);
|
||||
noBallTimer = millis();
|
||||
print("Fire!\n");
|
||||
print("isExist ");
|
||||
|
Reference in New Issue
Block a user