Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeManager_GasSensor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SmartHome
NodeManager_GasSensor
Commits
e9bcd8ed
Commit
e9bcd8ed
authored
7 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
DEBUG: Add printout about current free memory
parent
8dc5c706
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NodeManager.cpp
+7
-0
7 additions, 0 deletions
NodeManager.cpp
NodeManager.h
+3
-0
3 additions, 0 deletions
NodeManager.h
with
10 additions
and
0 deletions
NodeManager.cpp
+
7
−
0
View file @
e9bcd8ed
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
#include
"NodeManager.h"
#include
"NodeManager.h"
void
printFM
()
{
Serial
.
print
(
F
(
"Free memory = "
));
Serial
.
println
(
freeMemory
());
}
/***************************************
/***************************************
PowerManager
PowerManager
*/
*/
...
@@ -3503,6 +3507,7 @@ void NodeManager::presentation() {
...
@@ -3503,6 +3507,7 @@ void NodeManager::presentation() {
// setup NodeManager
// setup NodeManager
void
NodeManager
::
setup
()
{
void
NodeManager
::
setup
()
{
Serial
.
print
(
F
(
"NodeManager::setup: "
));
printFM
();
// retrieve and store isMetric from the controller
// retrieve and store isMetric from the controller
if
(
_get_controller_config
)
_is_metric
=
getControllerConfig
().
isMetric
;
if
(
_get_controller_config
)
_is_metric
=
getControllerConfig
().
isMetric
;
#if DEBUG == 1
#if DEBUG == 1
...
@@ -3517,9 +3522,11 @@ void NodeManager::setup() {
...
@@ -3517,9 +3522,11 @@ void NodeManager::setup() {
// run setup for all the registered sensors
// run setup for all the registered sensors
for
(
int
i
=
1
;
i
<=
MAX_SENSORS
;
i
++
)
{
for
(
int
i
=
1
;
i
<=
MAX_SENSORS
;
i
++
)
{
if
(
_sensors
[
i
]
==
0
)
continue
;
if
(
_sensors
[
i
]
==
0
)
continue
;
Serial
.
print
(
F
(
"NodeManager::setup: Before sensor "
));
Serial
.
print
(
i
);
printFM
();
// call each sensor's setup()
// call each sensor's setup()
_sensors
[
i
]
->
setup
();
_sensors
[
i
]
->
setup
();
}
}
Serial
.
print
(
F
(
"NodeManager::setup: END"
));
printFM
();
}
}
// run the main function for all the register sensors
// run the main function for all the register sensors
...
...
This diff is collapsed.
Click to expand it.
NodeManager.h
+
3
−
0
View file @
e9bcd8ed
...
@@ -5,10 +5,13 @@
...
@@ -5,10 +5,13 @@
#define NodeManager_h
#define NodeManager_h
#include
<Arduino.h>
#include
<Arduino.h>
#include
"MemoryFree.h"
// define NodeManager version
// define NodeManager version
#define VERSION "1.7-dev"
#define VERSION "1.7-dev"
void
printFM
();
/***********************************
/***********************************
Constants
Constants
*/
*/
...
...
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