From 41f6749780c8b314cc0b3d85e4f795c71e5e5957 Mon Sep 17 00:00:00 2001 From: moon2 <moon2protonmail@protonmail.com> Date: Sat, 25 Nov 2023 11:06:24 +0100 Subject: [PATCH] tiny sampler: throw out that one undocumented mode --- python_payload/apps/tiny_sampler/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_payload/apps/tiny_sampler/__init__.py b/python_payload/apps/tiny_sampler/__init__.py index ecc2a23291..e3b609ce23 100644 --- a/python_payload/apps/tiny_sampler/__init__.py +++ b/python_payload/apps/tiny_sampler/__init__.py @@ -289,9 +289,13 @@ class TinySampler(Application): return if self.input.buttons.app.left.pressed: self.mode -= 1 + if self.mode == 3: + self.mode -= 1 release_all = True elif self.input.buttons.app.right.pressed: self.mode += 1 + if self.mode == 3: + self.mode += 1 release_all = True else: release_all = False -- GitLab