fix mem fault
This commit is contained in:
		| @ -35,7 +35,7 @@ void initControl(void) | ||||
|     BaseType_t taskCreated = xTaskCreate( | ||||
|         taskControl,   // Function to implement the task | ||||
|         "taskControl", // Task name | ||||
|         4096,          // Stack size (in words, not bytes) | ||||
|         8192,          // Stack size (in words, not bytes) | ||||
|         NULL,          // Parameters to the task function (none in this case) | ||||
|         5,             // Task priority (higher number = higher priority) | ||||
|         NULL           // Task handle (optional) | ||||
|  | ||||
| @ -114,9 +114,9 @@ void updateAverage(sMeasurement *pMeasurement) | ||||
|     pMeasurement->average60s.fValue = sum / pMeasurement->average60s.bufferCount; | ||||
|     */ | ||||
| } | ||||
|  | ||||
| /* | ||||
| void updatePrediction(sMeasurement *pMeasurement) | ||||
| { /* Prediction of the value in 10sec */ | ||||
| {  Prediction of the value in 10sec  | ||||
|     pMeasurement->predict10s.samples[pMeasurement->predict10s.bufferIndex] = pMeasurement->fCurrentValue; | ||||
|     pMeasurement->predict10s.bufferIndex = (pMeasurement->predict10s.bufferIndex + 1) % PRED10_SAMPLE_SIZE; | ||||
|  | ||||
| @ -138,6 +138,7 @@ void updatePrediction(sMeasurement *pMeasurement) | ||||
|         } | ||||
|     } | ||||
| } | ||||
| */ | ||||
|  | ||||
| void taskInput(void *pvParameters) | ||||
| { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user