|
Page 1 of 1
|
[ 3 posts ] |
|
Write Debug Sream doesn't seem to work
| Author |
Message |
|
fretless_kb
Rookie
Joined: Wed Feb 09, 2011 1:08 am Posts: 24
|
 Write Debug Sream doesn't seem to work
I can write Strings, but when I try to format an int as output I get garbage. for instance: writeDebugStreamLine("Starting...");
works fine I get the string Starting...
But If I try a simple formatted output with Int's I get garbage. hours =1;minutes =2;seconds=3; writeDebugStreamLine("\n%d:%d:%d ",hours,minutes,seconds); yielded -515:0:3369
it should be 1:2:3
What's up with writedebugstring?
|
| Wed Dec 12, 2012 11:38 pm |
|
 |
|
amcerbu
Novice
Joined: Sun Oct 21, 2012 10:01 pm Posts: 76
|
 Re: Write Debug Sream doesn't seem to work
I'm not sure the new line escape sequence \n is supported. I could well be wrong, but try removing that and see if the bug persists.
|
| Thu Dec 13, 2012 2:47 am |
|
 |
|
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 537
|
 Re: Write Debug Sream doesn't seem to work
This is specifically a bug in the ROBOTC for Arduino system. Because the Atmel/ATMEGA processors use only two-byte indices for the VM, whereas all other platforms (excluding PIC) use four-byte.
We should have a fix for this early next week in BETA form.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
| Thu Dec 13, 2012 4:41 pm |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|