Index: /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c =================================================================== --- /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 19) +++ /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 38) @@ -208,19 +208,13 @@ static char cCountBuf[ 32 ]; long lRefreshCount = 0; -extern basementGasReading; -extern rtcHOURS; -extern rtcMINUTES; -extern rtcSECONDS; static unsigned short generate_rtos_stats(void *arg) { - lRefreshCount++; - - sprintf( cCountBuf, "
Refresh count = %d
Pulse Counter = %d at %02u:%02u:%02u", lRefreshCount, basementGasReading, rtcHOURS, rtcMINUTES, rtcSECONDS );
- strcat( uip_appdata, cCountBuf );
- vTaskList( uip_appdata );
- strcat( uip_appdata, cCountBuf );
-
- return strlen( uip_appdata );
+ lRefreshCount++;
+ sprintf( cCountBuf, "
Refresh count = %d", lRefreshCount );
+ vTaskList( uip_appdata );
+ strcat( uip_appdata, cCountBuf );
+
+ return strlen( uip_appdata );
}
/*---------------------------------------------------------------------------*/