freeDSP / freeDSP-aurora

freeDSP ADAU1452 with 8 analog input, 8 analog outputs, S/P-DIF I/O, ADAT I/O, USB Audio Class2, WiFi, Bluetooth
Creative Commons Attribution Share Alike 4.0 International
176 stars 55 forks source link

Refactored Python code base. #128

Open exislow opened 1 year ago

exislow commented 1 year ago

Added if statement to avoid execution of this file as module by accident. See https://stackoverflow.com/questions/419163/what-does-if-name-main-do-in-python

This file has a lot of code repetition. I just getting use to it and will push more refactoring PRs to remove all the code duplication etc.