Commit e70b14d7 authored by user2684's avatar user2684
Browse files

Compilation error when BATTERY_MANAGER is off #206

parent 080588d0
...@@ -3719,9 +3719,11 @@ void NodeManager::process(Request & request) { ...@@ -3719,9 +3719,11 @@ void NodeManager::process(Request & request) {
case 37: setReportIntervalMinutes(request.getValueInt()); break; case 37: setReportIntervalMinutes(request.getValueInt()); break;
case 38: setReportIntervalHours(request.getValueInt()); break; case 38: setReportIntervalHours(request.getValueInt()); break;
case 39: setReportIntervalDays(request.getValueInt()); break; case 39: setReportIntervalDays(request.getValueInt()); break;
case 40: setBatteryReportSeconds(request.getValueInt()); break; #if BATTERY_MANAGER == 1
case 41: setBatteryReportHours(request.getValueInt()); break; case 40: setBatteryReportSeconds(request.getValueInt()); break;
case 42: setBatteryReportDays(request.getValueInt()); break; case 41: setBatteryReportHours(request.getValueInt()); break;
case 42: setBatteryReportDays(request.getValueInt()); break;
#endif
default: return; default: return;
} }
_send(_msg.set(function)); _send(_msg.set(function));
...@@ -4113,4 +4115,4 @@ void NodeManager::_saveConfig() { ...@@ -4113,4 +4115,4 @@ void NodeManager::_saveConfig() {
saveState(EEPROM_SLEEP_1,bit_1); saveState(EEPROM_SLEEP_1,bit_1);
saveState(EEPROM_SLEEP_2,bit_2); saveState(EEPROM_SLEEP_2,bit_2);
saveState(EEPROM_SLEEP_3,bit_3); saveState(EEPROM_SLEEP_3,bit_3);
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <Arduino.h> #include <Arduino.h>
// define NodeManager version // define NodeManager version
#define VERSION "1.6-dev" #define VERSION "1.6"
/*********************************** /***********************************
Constants Constants
...@@ -1633,4 +1633,4 @@ class NodeManager { ...@@ -1633,4 +1633,4 @@ class NodeManager {
void _saveConfig(); void _saveConfig();
}; };
#endif #endif
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment