From 0db66f1784040dca190cf923cd9cff192a7958a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 3 Dec 2019 16:39:20 +0100 Subject: [PATCH] [python] Turtle: add TODO --- python/port/mod/turtle/turtle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/port/mod/turtle/turtle.cpp b/python/port/mod/turtle/turtle.cpp index 7a66d4240..58b51c4c2 100644 --- a/python/port/mod/turtle/turtle.cpp +++ b/python/port/mod/turtle/turtle.cpp @@ -335,6 +335,8 @@ bool Turtle::draw(bool force) { m_drawn = true; } + /* TODO: Maybe this threshold should be in time (mileage/speed) instead of + * mileage to interrupt with the same frequency whatever the speed is. */ if (m_mileage > k_mileageLimit) { if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : 3 * (k_maxSpeed - m_speed)))) { return true;