Changeset 44 for webserver/example
- Timestamp:
- 02/04/10 20:29:58 (15 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c
r41 r44 65 65 extern int chanWatt[6]; /* holds the wattages measured on channel 0 to 5 */ 66 66 extern int solarReadErrors; 67 extern int solarReadCounter; 67 68 68 69 HTTPD_CGI_CALL(file, "file-stats", file_stats); … … 224 225 lRefreshCount++; 225 226 sprintf( cCountBuf, "<p><br>Refresh count = %d\r\nVoltages %d %d %d %d\r\n\ 226 Wattages %d %d %d %d\r\nSolarReadErr %d\r\n ", lRefreshCount,227 Wattages %d %d %d %d\r\nSolarReadErr %d\r\nSolarReadCount %d\r\n", lRefreshCount, 227 228 chanVolt[0], chanVolt[1], chanVolt[2], chanVolt[3], 228 229 chanWatt[0], chanWatt[1], chanWatt[2], chanWatt[3], 229 solarReadErrors 230 solarReadErrors, solarReadCounter 230 231 ); 231 232 //strcat( uip_appdata, cCountBuf ); webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c
r39 r44 109 109 int solarReadErrors = 0; 110 110 111 int solarReadCounter = 0; 112 111 113 /* pototype section */ 112 114 … … 142 144 xLastReadTime = xTaskGetTickCount(); 143 145 solarState = SOL_NO_INIT; 144 init_serial3(); 146 uart3TxRunning = 0; /* reset flag to tell if we are currently sending a datagram */ 147 rxBuf3NextFreeRxPos = 0; 148 currentChannel = 0; 145 149 } /* initSolarFSM */ 146 150 … … 350 354 /* we have got a match! */ 351 355 356 solarReadCounter++; 352 357 /* copy Rx data */ 353 358 /* TODO */ … … 624 629 { 625 630 626 631 init_serial3(); 627 632 initSolarFSM(); 628 633