desowin/gdigi — pull request #1 by tlaberge (2012-04-08 16:57:24+00:00)
Title: Refine debug/logging infrastructure

Hi Tomasz,

I pushed some commits that provide a simple logging and debug infrastructure.

Now when gdigi starts on the console, it is by default silent. Adding debug flags (like -D m for messages) gives output like:

tlaberge@tdf:() -> export UBUNTU_MENUPROXY= ;./gdigi -D m
Send RECEIVE_PARAMETER_VALUE: ( 0, 12298, 1) Global: GUI Mode: 1
RECEIVE_PRESET_START: current edit buffer
Name: OCTAVD , Modified
1 ( 2, 65, 0) Pickup: Pickup Enable: Off
2 ( 2, 64, 65) Pickup: EQ Type: SC>HB
3 ( 3, 129, 0) Wah: Wah Enable: Off
4 ( 3, 128, 132) Wah: Wah Type: Cry Wah
5 (20, 8195, 0) Wah Min Max: Wah Min: 0
6 (20, 8196, 99) Wah Min Max: Wah Min: 99
7 ( 3, 133, 0) Wah: Wah Vol. Boost: 0dB
8 ( 4, 193, 0) Compressor: Compressor Enable: Off

I used the xml infrastructure to decode parameters as they are coming from and going to the device, so
it's much easier to see what's going on.

Thanks,

Tim