Orcino
Joined: 07 Sep 2003 Posts: 56
|
printf BUG V4.122 / V4.123 |
Posted: Thu Jul 21, 2011 6:14 pm |
|
|
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); |
|
|