Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SmartHome
NodeManager_BME280_EasyPCB
Commits
e70b14d7
Commit
e70b14d7
authored
Aug 22, 2017
by
user2684
Browse files
Compilation error when BATTERY_MANAGER is off #206
parent
080588d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
NodeManager.cpp
View file @
e70b14d7
...
...
@@ -3719,9 +3719,11 @@ void NodeManager::process(Request & request) {
case
37
:
setReportIntervalMinutes
(
request
.
getValueInt
());
break
;
case
38
:
setReportIntervalHours
(
request
.
getValueInt
());
break
;
case
39
:
setReportIntervalDays
(
request
.
getValueInt
());
break
;
case
40
:
setBatteryReportSeconds
(
request
.
getValueInt
());
break
;
case
41
:
setBatteryReportHours
(
request
.
getValueInt
());
break
;
case
42
:
setBatteryReportDays
(
request
.
getValueInt
());
break
;
#if BATTERY_MANAGER == 1
case
40
:
setBatteryReportSeconds
(
request
.
getValueInt
());
break
;
case
41
:
setBatteryReportHours
(
request
.
getValueInt
());
break
;
case
42
:
setBatteryReportDays
(
request
.
getValueInt
());
break
;
#endif
default:
return
;
}
_send
(
_msg
.
set
(
function
));
...
...
@@ -4113,4 +4115,4 @@ void NodeManager::_saveConfig() {
saveState
(
EEPROM_SLEEP_1
,
bit_1
);
saveState
(
EEPROM_SLEEP_2
,
bit_2
);
saveState
(
EEPROM_SLEEP_3
,
bit_3
);
}
\ No newline at end of file
}
NodeManager.h
View file @
e70b14d7
...
...
@@ -7,7 +7,7 @@
#include <Arduino.h>
// define NodeManager version
#define VERSION "1.6
-dev
"
#define VERSION "1.6"
/***********************************
Constants
...
...
@@ -1633,4 +1633,4 @@ class NodeManager {
void
_saveConfig
();
};
#endif
\ No newline at end of file
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment