vanvught / rpidmx512

Orange Pi DMX512 / RDM / MIDI / OSC / Art-Net / WS28xx / L6470 / Stepper / TLC59711 / PCA9685 / Servo / PWM / TCNet / SMPTE / RDMNet / LLRP / GD32 / GigaDevice / Raspberry Pi
http://www.orangepi-dmx.org/
MIT License
398 stars 108 forks source link

Simplify class RemoteConfig #217

Closed vanvught closed 3 years ago

vanvught commented 3 years ago

The switch https://github.com/vanvught/rpidmx512/blob/master/lib-remoteconfig/src/remoteconfig.cpp#L621 can be replaced with function pointers.

The three arrays here -> https://github.com/vanvught/rpidmx512/blob/master/lib-remoteconfig/src/remoteconfigstatic.cpp#L37 can be merged into a single struct.

cc: @hippyau