Niuslar / Multichannel-Temperature-Control

5 stars 3 forks source link

feature: process commands with table #80

Closed Niuslar closed 2 years ago

Niuslar commented 2 years ago

@Vavat I saw this in a book and thought it could be used here. It is a way to process commands using an array of commands and function pointers. What I did was:

I think this is much easier to read and it makes it easier to add new commands if we need to. Let me know what you think

Niuslar commented 2 years ago

This could lead to bugs and it is not clear for someone who's not familiar with the code.