View unanswered posts | View active topics It is currently Fri Oct 24, 2014 3:00 am






Reply to topic  [ 3 posts ] 
Write Debug Sream doesn't seem to work 
Author Message
Rookie

Joined: Wed Feb 09, 2011 1:08 am
Posts: 27
Post 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
Profile
Novice

Joined: Sun Oct 21, 2012 10:01 pm
Posts: 76
Post 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
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 613
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.