mirror of https://github.com/arendst/Tasmota.git
tuya: keep option to set dimmer-id at compile-time
This commit is contained in:
parent
7f9f1f2f66
commit
9723d6de56
|
@ -310,6 +310,9 @@ void TuyaRequestState(){
|
|||
|
||||
void TuyaInit()
|
||||
{
|
||||
if (!Settings.param[P_TUYA_DIMMER_ID]) {
|
||||
Settings.param[P_TUYA_DIMMER_ID] = TUYA_DIMMER_ID;
|
||||
}
|
||||
TuyaSerial = new TasmotaSerial(pin[GPIO_TUYA_RX], pin[GPIO_TUYA_TX], 1);
|
||||
if (TuyaSerial->begin(9600)) {
|
||||
if (TuyaSerial->hardwareSerial()) { ClaimSerial(); }
|
||||
|
|
Loading…
Reference in New Issue