Fix missing n3 attribute and async function issue
- Add missing self.n3 = 1 attribute to MidiHandler initialization - Fix update_rgb async function to properly yield control with await asyncio.sleep(0) - Resolves TypeError about expecting coroutine but getting None - Application now working properly with buttons and dials functional
This commit is contained in:
@@ -204,7 +204,7 @@ class App:
|
||||
# --- Asynchronous Update Functions ---
|
||||
@async_handler
|
||||
async def update_rgb(self, tab):
|
||||
pass
|
||||
await asyncio.sleep(0) # Yield control
|
||||
|
||||
def update_status_labels(self):
|
||||
# Pull values from midi_handler
|
||||
|
Reference in New Issue
Block a user