diff --git a/main/control.c b/main/control.c index 76ea7e7..eedc877 100644 --- a/main/control.c +++ b/main/control.c @@ -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) diff --git a/main/inputs.c b/main/inputs.c index 7e11b6e..fdcee66 100644 --- a/main/inputs.c +++ b/main/inputs.c @@ -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) {