This repository was archived by the owner on May 3, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ void Screen::on_touched(
4040 // TODO: Determine thread safety? (What happens if task A calls this, and while touch_task is
4141 // being constructed, task B preempts it and calls this again?)
4242 static pros::Task touch_task ([] {
43- while (true ) {
44- const auto touch = Screen::get_last_touch ();
43+ while (true ) {
44+ const auto touch = Screen::get_last_touch ();
4545 const auto state = touch.state ;
46- static Screen::TouchEvent::State prev_state = state;
47- static size_t prev_time = pros::millis ();
46+ static Screen::TouchEvent::State prev_state = state;
47+ static uint32_t prev_time = pros::millis ();
4848
4949 if (prev_state != state)
5050 for (const auto & listener : listeners)
You can’t perform that action at this time.
0 commit comments