CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

problem with string too long

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jruibarroso



Joined: 07 Jan 2006
Posts: 64
Location: Braga

View user's profile Send private message Send e-mail MSN Messenger

problem with string too long
PostPosted: Mon Jun 15, 2009 11:30 am     Reply with quote

Hi group, I have this annoying problem that I can't handle :

Code:
printf(lcd_putc,"\fTemp.Painel : %4.1w%cC\nTemp.Cilind.: %4.1w%cC\nTemp.Extern.: %4.1w%cC\nOutros valores: %4u%cC",Pain,223,Cil,223,Ext,223,Outr,223);

After compile, program says " STRING TOO LONG !".
If I remove some characters, then everything ok.

Can everyone help me ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 15, 2009 11:46 am     Reply with quote

Break it up into two or more smaller printf statements.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Mon Jun 15, 2009 5:11 pm     Reply with quote

I've had this problem before. Your PIC just doesn't have the memory available to buffer it to the port. You'll need to print it out with multiple printf() statements.

Ronald
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group