arachnidlabs / reload-pro

Schematics and code for the Re:load Pro
http://www.arachnidlabs.com/reload-pro/
Apache License 2.0
98 stars 32 forks source link

Adding serial command #97

Closed Ralim closed 5 years ago

Ralim commented 7 years ago

Hi, I'm looking to add a new serial command to allow clearing the totals for amp hours and watt hours. Is there any chance of adding an extra command?

Looking at the comment /* maximum key range = 13, duplicates = 0 */ here

It looks like your using a neat way to resolve the commands to functions... Is there a link to a explanation of this anywhere?

Thanks :)

Arachnid commented 7 years ago

This is a perfect hash, generated by a tool called gperf. Command line is in a comment up top.