RS232 control for TVOne products
Revision 13:4d659b89a457, committed 2012-11-03
- Comitter:
- tobyspark
- Date:
- Sat Nov 03 20:09:46 2012 +0000
- Parent:
- 12:e67d849928b0
- Child:
- 14:da403a01f9ef
- Commit message:
- Better debug messages
Changed in this revision
spk_tvone_mbed.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/spk_tvone_mbed.cpp Mon Oct 29 13:17:19 2012 +0000 +++ b/spk_tvone_mbed.cpp Sat Nov 03 20:09:46 2012 +0000 @@ -60,7 +60,7 @@ if (payload != payloadBack) { success = false; - if (debug) debug->printf("TVOne return value (%d) is not what was set (%d)", payload, payloadBack); + if (debug) debug->printf("TVOne return value (%d) is not what was set (%d). Channel: %#x, Window: %#x, Function: %#x \r\n", payloadBack, payload, channel, window, func); } return success; } @@ -181,7 +181,7 @@ } if (debug) { - debug->printf("Serial command write error. Time from write finish: %ims \r\n", timer.read_ms()); + debug->printf("TVOne serial error. Time from finishing writing command: %ims \r\n", timer.read_ms()); } };