mirror of https://github.com/arendst/Tasmota.git
Add more SO47 info
This commit is contained in:
parent
4e9cfc7629
commit
1caffb353c
|
@ -459,10 +459,10 @@ enum DevGroupShareItem { DGR_SHARE_POWER = 1, DGR_SHARE_LIGHT_BRI = 2, DGR_SHARE
|
|||
|
||||
enum CommandSource { SRC_IGNORE, SRC_MQTT, SRC_RESTART, SRC_BUTTON, SRC_SWITCH, SRC_BACKLOG, SRC_SERIAL, SRC_WEBGUI, SRC_WEBCOMMAND, SRC_WEBCONSOLE, SRC_PULSETIMER,
|
||||
SRC_TIMER, SRC_RULE, SRC_MAXPOWER, SRC_MAXENERGY, SRC_OVERTEMP, SRC_LIGHT, SRC_KNX, SRC_DISPLAY, SRC_WEMO, SRC_HUE, SRC_RETRY, SRC_REMOTE, SRC_SHUTTER,
|
||||
SRC_THERMOSTAT, SRC_CHAT, SRC_TCL, SRC_BERRY, SRC_FILE, SRC_SSERIAL, SRC_USBCONSOLE, SRC_MAX };
|
||||
SRC_THERMOSTAT, SRC_CHAT, SRC_TCL, SRC_BERRY, SRC_FILE, SRC_SSERIAL, SRC_USBCONSOLE, SRC_SO47, SRC_MAX };
|
||||
const char kCommandSource[] PROGMEM = "I|MQTT|Restart|Button|Switch|Backlog|Serial|WebGui|WebCommand|WebConsole|PulseTimer|"
|
||||
"Timer|Rule|MaxPower|MaxEnergy|Overtemp|Light|Knx|Display|Wemo|Hue|Retry|Remote|Shutter|"
|
||||
"Thermostat|Chat|TCL|Berry|File|SSerial|UsbConsole";
|
||||
"Thermostat|Chat|TCL|Berry|File|SSerial|UsbConsole|SO47";
|
||||
|
||||
const uint8_t kDefaultRfCode[9] PROGMEM = { 0x21, 0x16, 0x01, 0x0E, 0x03, 0x48, 0x2E, 0x1A, 0x00 };
|
||||
|
||||
|
|
|
@ -1081,7 +1081,7 @@ void PerformEverySecond(void)
|
|||
}
|
||||
if (!TasmotaGlobal.power_on_delay && TasmotaGlobal.power_on_delay_state) {
|
||||
// Set relays according to last SetDevicePower() request
|
||||
SetDevicePower(TasmotaGlobal.power_on_delay_state, SRC_RESTART);
|
||||
SetDevicePower(TasmotaGlobal.power_on_delay_state, SRC_SO47);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2084,7 +2084,7 @@ void GpioInit(void)
|
|||
DigitalWrite(GPIO_REL1, i, bitRead(TasmotaGlobal.rel_inverted, i) ? 1 : 0); // Off
|
||||
}
|
||||
}
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR("INI: SO47 Power off relays"));
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR("INI: SO47 %d Power off relays"), Settings->param[P_POWER_ON_DELAY2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue