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 support@ccsinfo.com

printf BUG V4.122 / V4.123

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



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message

printf BUG V4.122 / V4.123
PostPosted: Thu Jul 21, 2011 6:14 pm     Reply with quote

Hi,

the function PRINTF has a BUG. The pic is 18F2620 i tested in version 4.122 and 4.123 and not work, in version 4.093 work.

Code:

void enviaDados(void)
{
   int16 contReg=0; // contagem dos registros
   
   nBytesenviar=100; // debug
   nQtdtrem=120; // debug
     
    printf("AT^SISW=%lu",nBytesEnviar);
    putchar(0x0D);
    delay_ms(500);
   
    printf(">123;%u;%lu",ID,nQtdTrem);   <------------ This a very estrnge
    putchar(0x0D);                                                      show >123 only
                                                                                but in another   
                                                                                function work
     
   cont=0;
   idxBufferGravacao=0;
   segundos=0;
   contTime=0;
   
   disable_interrupts(INT_TIMER0);
   disable_interrupts(GLOBAL);

//   ee_write16(6,nQtdTrem); // salva var na eeprom
   
   flagDadosEnviados=1;   

   nQtdTrem++; 

   printf("AT^SISC=0"); 
   putchar(0x0D);
   delay_ms(500);
PICoHolic



Joined: 04 Jan 2005
Posts: 224

View user's profile Send private message

PostPosted: Fri Jul 22, 2011 3:10 am     Reply with quote

Report to : support@ccsinfo.com
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