Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pablogrb
Copy link

Implements a logger class to control the serial output verbosity.

Inspired by the python logging module.

Log messages have been improved including units where missing, fixing spelling mistakes, and using a consistent format throughout the library.

OPCN3.cpp/h
* added logger class
* serial console messages now passed through logger class
* initialize now takes an optional logLevel argument
* fixed spelling errors
* conversion to human readable strings for fan and laser states
* added default argument to initialize, sets the log level

ConfigurationVariables.cpp/h
* removed unneeded spacers
* fixed spelling erros
* added units
* added labels for additional parameters

DACandPowerStatus.cpp/h
* removed unneeded spacers

HistogramData.cpp
* now matches the format of ConfigurationVariables
* added labels for additional parameters
…sponse. Fixes a memcopy c++ compiler warning.
OPCN3.cpp
* state strings are now char arrays
* improves serial display on RP2040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant