Yep, I’ve verified the functionality with the example sketches. I’ve narrowed it down to daisy::patch_sm::DaisyPatchSM::PrintLine()
. I am printing every 500ms so as not to block the while loop.
I managed to verify that the below works without affecting functionality:
hw.PrintLine("char");
[Console Output: char]
I then found this post: Using Log to print variables?. The solution doesn’t work as suggested, since the variable part of the output is blank:
float myFloat = 1.234f;
hw.PrintLine("Print a float value:%.3f", myfloat);
[Console Output: Print a float value: ]
If I go one step further and regularly update myFloat as part of a loop, that’s when the hardware crashes and the serial console doesn’t print anything at all, which is what prompted me to post the question. Apologies, the extra detail would have been useful - I should have waited until I had done the testing to pin down the issue!