Changeset 55

Show
Ignore:
Timestamp:
02/27/10 10:38:42 (15 years ago)
Author:
phil
Message:

- increased cCountBuf to 800 bytes to prevent mem corruption
- increased font size of output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c

    r54 r55  
    218218 
    219219extern void vTaskList( signed char *pcWriteBuffer ); 
    220 static char cCountBuf[ 32 ]; 
     220static char cCountBuf[ 800 ]; 
    221221long lRefreshCount = 0; 
    222222static unsigned short 
     
    227227 
    228228        lRefreshCount++; 
    229         sprintf( cCountBuf, "<p><br>Refresh count = %d\r\nVoltages %d %d %d %d\r\n\ 
    230 Wattages %d %d %d %d\r\nSolarReadErr %u\r\nSolarReadCount %u\r\nCurrentTime %u\r\n", lRefreshCount, 
     229        sprintf( cCountBuf, "<h2>\r\n<p><br>Refresh count = %d\r\nVoltages %d %d %d %d\r\n\ 
     230Wattages %d %d %d %d\r\nSolarReadErr %u\r\nSolarReadCount %u\r\nCurrentTime %u\r\n</h2>\r\n", lRefreshCount, 
    231231         chanVolt[0], chanVolt[1], chanVolt[2], chanVolt[3], 
    232232         chanWatt[0], chanWatt[1], chanWatt[2], chanWatt[3],