Skip to content

Add conditional debug logging.#15

Open
san-rizz-777 wants to merge 1 commit intolocalrice:mainfrom
san-rizz-777:feat/debug-log
Open

Add conditional debug logging.#15
san-rizz-777 wants to merge 1 commit intolocalrice:mainfrom
san-rizz-777:feat/debug-log

Conversation

@san-rizz-777
Copy link

Changes made.

  1. Added four debugPrint functions (overloaded) for taking various inputs, and replaced the "Serial.println" with the wrapper function.
  2. Added the wrapper function "debugPrint" to reduce verbosity of multiple "ifdef and endif 's".
  3. Added the defination of function and included "DEBUG" in the .hpp file.
  4. Declaration and replacement was included in the .cpp source code.
  5. Proper naming conventions followed and consistency was maintained.

Testing

  1. Functions tested on the local machine they are working well without error.
  2. Total code is working well.

#Aftereffects

  1. Now user can toggle between debugging modes.
  2. Less verbosity and better user experience.

Issue : - #6

@san-rizz-777
Copy link
Author

@localrice Bro please review and tell if any changes to be made. Would be grateful , Thank you!

@san-rizz-777
Copy link
Author

@localrice

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