You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project where I tried Stream* stream = NULL when I didn't want output messages. While this compiled, my Teensy went into a boot loop. I've solved my issue by using overloaded functions with an if (stream != NULL) check but I wondered if adding NULL handling to the core Print class would be a interesting idea.
The text was updated successfully, but these errors were encountered:
Hi @m-elias ,
the thing you are proposing is not very feasible at a platform level; however, adding a default NullStream object (that does nothing) is definitely a good idea.
The code would then need to be modified as Stream* stream = &NullStream
and that instance would simply "do nothing"
I'm working on a project where I tried
Stream* stream = NULL
when I didn't want output messages. While this compiled, my Teensy went into a boot loop. I've solved my issue by using overloaded functions with anif (stream != NULL)
check but I wondered if adding NULL handling to the core Print class would be a interesting idea.The text was updated successfully, but these errors were encountered: