Skip to content

Commit 275c03e

Browse files
committed
Add set_next_code_file to pygamer and pybadge
1 parent 20aeeab commit 275c03e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pybadge/ugame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def get_pressed(self):
7171
now = time.monotonic()
7272
if self.last_z_press:
7373
if now - self.last_z_press > 2:
74+
supervisor.set_next_code_file(None)
7475
supervisor.reload()
7576
else:
7677
self.last_z_press = now

pygamer/ugame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def get_pressed(self):
7474
now = time.monotonic()
7575
if self.last_z_press:
7676
if now - self.last_z_press > 2:
77+
supervisor.set_next_code_file(None)
7778
supervisor.reload()
7879
else:
7980
self.last_z_press = now

0 commit comments

Comments
 (0)