Index: webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c =================================================================== --- webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c (revision 39) +++ webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c (revision 44) @@ -109,4 +109,6 @@ int solarReadErrors = 0; +int solarReadCounter = 0; + /* pototype section */ @@ -142,5 +144,7 @@ xLastReadTime = xTaskGetTickCount(); solarState = SOL_NO_INIT; - init_serial3(); + uart3TxRunning = 0; /* reset flag to tell if we are currently sending a datagram */ + rxBuf3NextFreeRxPos = 0; + currentChannel = 0; } /* initSolarFSM */ @@ -350,4 +354,5 @@ /* we have got a match! */ + solarReadCounter++; /* copy Rx data */ /* TODO */ @@ -624,5 +629,5 @@ { - + init_serial3(); initSolarFSM();