Skip to content
Snippets Groups Projects
Commit e12a4058 authored by fxk8y's avatar fxk8y :spider:
Browse files

make measure period configurable through device config

parent ee3df729
No related branches found
No related tags found
2 merge requests!8Updating bme280-qthing,!5Measured: A measuring daemon
......@@ -46,7 +46,7 @@ static void measured(void *ignored) {
sens_backend(data);
vTaskDelayUntil(&lastWakeTime, 1000 / portTICK_PERIOD_MS);
vTaskDelayUntil(&lastWakeTime, MEASURED_PERIOD_MS / portTICK_PERIOD_MS);
}
}
......
......@@ -4,6 +4,13 @@
#include <vector>
#include <functional>
#include "device/device_config.h"
#ifndef MEASURED_PERIOD_MS
#define MEASURED_PERIOD_MS 1000
#endif
namespace qthing {
namespace measured {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment