Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qthing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
qthing
Commits
e12a4058
Commit
e12a4058
authored
6 years ago
by
fxk8y
Browse files
Options
Downloads
Patches
Plain Diff
make measure period configurable through device config
parent
ee3df729
No related branches found
No related tags found
2 merge requests
!8
Updating bme280-qthing
,
!5
Measured: A measuring daemon
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/measured.cpp
+1
-1
1 addition, 1 deletion
main/measured.cpp
main/measured.h
+7
-0
7 additions, 0 deletions
main/measured.h
with
8 additions
and
1 deletion
main/measured.cpp
+
1
−
1
View file @
e12a4058
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
main/measured.h
+
7
−
0
View file @
e12a4058
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment