From 80e48f632f86205ba3e3edb450b3a7b2a2697c310ea908a2d9104f50edb0894a Mon Sep 17 00:00:00 2001 From: localhorst Date: Thu, 26 Dec 2024 11:01:25 +0100 Subject: [PATCH] fix mem fault --- main/control.c | 2 +- main/inputs.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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) {