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
6be36f18
Commit
6be36f18
authored
6 years ago
by
fxk8y
Browse files
Options
Downloads
Patches
Plain Diff
renaming task
parent
9cea0312
No related branches found
Branches containing commit
No related tags found
2 merge requests
!8
Updating bme280-qthing
,
!4
add ntp service
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/ntp.cpp
+3
-3
3 additions, 3 deletions
main/ntp.cpp
with
3 additions
and
3 deletions
main/ntp.cpp
+
3
−
3
View file @
6be36f18
...
...
@@ -20,7 +20,7 @@ typedef struct {
static
ntpd_parameter_t
parameter
;
void
ntp
d
(
void
*
ignored
)
{
void
ntp
_task
(
void
*
ignored
)
{
time_t
now
=
0
;
struct
tm
timeinfo
=
{
0
};
...
...
@@ -45,7 +45,7 @@ namespace qthing {
void
enable_ntp
(
std
::
string
address
,
std
::
string
timezone
,
qthing
::
ntp_callback_t
callback
)
{
if
(
parameter
.
started
)
{
ESP_LOGE
(
"NTP
D
"
,
"service already enabled"
);
ESP_LOGE
(
"NTP"
,
"service already enabled"
);
return
;
}
...
...
@@ -54,6 +54,6 @@ namespace qthing {
setenv
(
"TZ"
,
(
char
*
)
timezone
.
c_str
(),
1
);
tzset
();
xTaskCreate
(
ntp
d
,
"ntp
d
"
,
10000
,
NULL
,
1
,
NULL
);
xTaskCreate
(
ntp
_task
,
"ntp"
,
10000
,
NULL
,
1
,
NULL
);
}
}
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