Skip to content

Debug printing: refactor and allow USB output - #215

Merged
jamiefaye merged 3 commits into
SynthstromAudible:communityfrom
bfredl:debugmsg
Jul 20, 2023
Merged

Debug printing: refactor and allow USB output#215
jamiefaye merged 3 commits into
SynthstromAudible:communityfrom
bfredl:debugmsg

Conversation

@bfredl

@bfredl bfredl commented Jul 20, 2023

Copy link
Copy Markdown
Collaborator
  • Complete the separation of using highlevel c++ functions for debug printing in most high-level code
  • Add the option to send debug output to a USB device (this excludes the low-level uartPrintLn calls as these could occur in interrupts where sending USB-MIDI data might not be safe)
  • rename the namespace for debug printing to Debug:: instead of Uart::

@bfredl bfredl changed the title Debugmsg Debug printing: refactor and allow USB output Jul 20, 2023
@bfredl

bfredl commented Jul 20, 2023

Copy link
Copy Markdown
Collaborator Author

The plan is to add support for some formatting interface as well, like fmt::vformat() but that will be a follow-up PR.

bfredl added 3 commits July 20, 2023 15:34
request:
  F0 7D 03 00 [mode] F7
    mode = 00: off
    mode = 01: on (replies on the same midi device)
    otherwise reserved

reply:
  F0 7D 03 40 [kind] {ascii bytes 0-7f} F7
  kind = currently always 00, could be used for categories later

ascii bytes will use '\n' (0x0a) where a newline is intended.
@jamiefaye
jamiefaye added this pull request to the merge queue Jul 20, 2023
Merged via the queue into SynthstromAudible:community with commit 28128f7 Jul 20, 2023
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.

2 participants