From e6e817ef5a68d358725932d1f837bfa0e2ea2d0d Mon Sep 17 00:00:00 2001 From: dreamer Date: Thu, 31 Aug 2023 07:45:35 +0200 Subject: [PATCH] remove MidiUsbHandler --- src/json2daisy/json2daisy.py | 3 +-- tests/data/integration/expected_field.h | 1 - tests/data/integration/expected_patch.h | 1 - tests/data/integration/expected_pod.h | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/json2daisy/json2daisy.py b/src/json2daisy/json2daisy.py index 6866f6a..131eb04 100644 --- a/src/json2daisy/json2daisy.py +++ b/src/json2daisy/json2daisy.py @@ -256,8 +256,7 @@ def generate_header(board_description_dict: dict) -> 'tuple[str, dict]': if 'defines' in target: if target['defines'].get('OOPSY_TARGET_HAS_MIDI_INPUT'): target['has_midi'] = True - replacements['midi'] = """daisy::MidiUartHandler midi; - daisy::MidiUsbHandler midiusb;""" + replacements['midi'] = """daisy::MidiUartHandler midi;""" replacements['process'] = filter_map_template( components, 'process', key_exclude='default', match_exclude=True) diff --git a/tests/data/integration/expected_field.h b/tests/data/integration/expected_field.h index d443977..63f50d5 100644 --- a/tests/data/integration/expected_field.h +++ b/tests/data/integration/expected_field.h @@ -261,7 +261,6 @@ struct DaisyField { daisy::I2CHandle i2c; daisy::OledDisplay display; daisy::MidiUartHandler midi; - daisy::MidiUsbHandler midiusb; }; diff --git a/tests/data/integration/expected_patch.h b/tests/data/integration/expected_patch.h index 863b883..3f02c8e 100644 --- a/tests/data/integration/expected_patch.h +++ b/tests/data/integration/expected_patch.h @@ -239,7 +239,6 @@ struct DaisyPatch { dsy_gpio gateout; daisy::OledDisplay display; daisy::MidiUartHandler midi; - daisy::MidiUsbHandler midiusb; }; diff --git a/tests/data/integration/expected_pod.h b/tests/data/integration/expected_pod.h index 69759ac..657b09a 100644 --- a/tests/data/integration/expected_pod.h +++ b/tests/data/integration/expected_pod.h @@ -169,7 +169,6 @@ struct DaisyPod { daisy::Switch sw2; daisy::OledDisplay display; daisy::MidiUartHandler midi; - daisy::MidiUsbHandler midiusb; };