From a00d44d983395c085f0181762d59886423e7b791 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Sun, 31 Jan 2021 08:01:35 +1000 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 91dc90c..e824f4a 100644 --- a/main.py +++ b/main.py @@ -66,6 +66,6 @@ while True: if exp_max - exp_min > exp_calibration_threshold: led.value(1) # Turn led on cc_val = translate(exp_current) - uart.write(ustruct.pack("bbb",ControlChange + midi_channel - 1, cc, cc_val)) + uart.write(ustruct.pack("bbb", ControlChange + midi_channel - 1, cc, cc_val)) led.value(0) # Turn led off print("Writing Midi Channel: {}, ControlChange: {}, Value {}. Exp Pedal: cur: {}, min: {}, max: {}".format(midi_channel, cc, cc_val, exp_current, exp_min, exp_max))