1 mb compiling version

This commit is contained in:
Dmitry Borisenko
2020-12-16 13:59:01 +01:00
parent 9934690d0a
commit 078c4389b5
28 changed files with 168 additions and 174 deletions

View File

@@ -9,6 +9,7 @@
#include "items/vLogging.h"
#include "items/vImpulsOut.h"
#include "items/vCountDown.h"
#include "items/SensorModbusClass.h"
void loopCmdAdd(const String& cmdStr) {
orderBuf += cmdStr;
@@ -41,9 +42,11 @@ void csvCmdExecute(String& cmdStr) {
if (order == F("button-out")) {
sCmd.addCommand(order.c_str(), buttonOut);
}
#ifdef PwmOutEnable
else if (order == F("pwm-out")) {
sCmd.addCommand(order.c_str(), pwmOut);
}
#endif
else if (order == F("button-in")) {
sCmd.addCommand(order.c_str(), buttonIn);
}
@@ -59,12 +62,15 @@ void csvCmdExecute(String& cmdStr) {
else if (order == F("dallas-temp")) {
sCmd.addCommand(order.c_str(), dallas);
}
#ifdef SensorDhtEnabled
else if (order == F("dht-temp")) {
sCmd.addCommand(order.c_str(), dhtTemp);
}
else if (order == F("dht-hum")) {
sCmd.addCommand(order.c_str(), dhtHum);
}
#endif
#ifdef SensorBme280Enabled
else if (order == F("bme280-temp")) {
sCmd.addCommand(order.c_str(), bme280Temp);
}
@@ -74,15 +80,20 @@ void csvCmdExecute(String& cmdStr) {
else if (order == F("bme280-press")) {
sCmd.addCommand(order.c_str(), bme280Press);
}
#endif
#ifdef SensorBmp280Enabled
else if (order == F("bmp280-temp")) {
sCmd.addCommand(order.c_str(), bmp280Temp);
}
else if (order == F("bmp280-press")) {
sCmd.addCommand(order.c_str(), bmp280Press);
}
#endif
#ifdef SensorModbusEnabled
else if (order == F("modbus")) {
//sCmd.addCommand(order.c_str(), modbus);
sCmd.addCommand(order.c_str(), modbus);
}
#endif
else if (order == F("uptime")) {
sCmd.addCommand(order.c_str(), sysUptime);
}