Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Wrap printf diagnotics in something like a CONFIG_MRAA_DIAGNOSTICS define #20

@jontrulson

Description

@jontrulson

This is more of an enhancement suggestion for discussion purposes.

I was thinking we could create a define like this, and all diagnostic printfs could be wrapped with it. This would conserve bytes. For example:

#if defined(CONFIG_MRAA_DIAGNOSTICS)
printf("Something really bad happened that you will want to know about\n");
#endif

Then if someone (like me) is seeing failures, I could just set that in my prj.conf file and watch the console. Those diagnostics are handy when something is failing and you do not know what it is, but eat up space that might not be needed when development of your application is over.

When not needed, it would save many bytes of text. Just a thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions