[python/turtle] Tune values of the turtle speed

This commit is contained in:
Léa Saviot
2018-12-11 14:46:44 +01:00
parent 91c4fea517
commit 306869edca
2 changed files with 2 additions and 2 deletions

View File

@@ -293,7 +293,7 @@ bool Turtle::draw(bool force) {
}
if (m_mileage > 1000) {
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : k_maxSpeed * (k_maxSpeed - m_speed)))) {
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : 3 * (k_maxSpeed - m_speed)))) {
return true;
}
m_mileage -= 1000;