Zanduino / MCP7940

Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
GNU General Public License v3.0
37 stars 22 forks source link

Optimize c++ code #54

Closed SV-Zanshin closed 3 years ago

SV-Zanshin commented 3 years ago

Describe what the feature request is and if it solves an issue or adds functionality Create a more robust and optimized library

Describe the solution you'd like Apply some new c++ knowledge, particularly around making the library more rounded and robust and attempt to minimize the memory footprint

Describe alternatives you've considered n/a

Additional context n/a

SV-Zanshin commented 3 years ago

Compacted some of the code to make the library have a smaller footprint and use less permanent and temporary storage. Also added "const" to the class functions where applicable to come closer to adhering to c++ programming standards. Used standard initializers rather than assignments where possible.