mirror of https://github.com/arendst/Tasmota.git
PS_16_DZ: tryfix dimming
This commit is contained in:
parent
977822f131
commit
b7a18f7bcc
|
@ -832,7 +832,7 @@ void LightAnimate(void)
|
|||
LightMy92x1Duty(cur_col[0], cur_col[1], cur_col[2], cur_col[3], cur_col[4]);
|
||||
}
|
||||
#ifdef USE_TUYA_DIMMER
|
||||
if (light_type == LT_SERIAL1) {
|
||||
if (light_type == LT_SERIAL1 && Settings.module == TUYA_DIMMER ) {
|
||||
LightSerialDuty(cur_col[0]);
|
||||
}
|
||||
#endif // USE_TUYA_DIMMER
|
||||
|
@ -842,7 +842,7 @@ void LightAnimate(void)
|
|||
}
|
||||
#endif // USE_ARMTRONIX_DIMMERS
|
||||
#ifdef USE_PS_16_DZ
|
||||
if (light_type == LT_SERIAL1) {
|
||||
if (light_type == LT_SERIAL1 && Settings.module == PS_16_DZ) {
|
||||
PS16DZSerialDuty(cur_col[0]);
|
||||
}
|
||||
#endif // USE_PS_16_DZ
|
||||
|
|
|
@ -31,7 +31,8 @@ boolean ps16dz_ignore_dim = false; // Flag to skip serial send to pre
|
|||
|
||||
boolean ps16dz_power = false;
|
||||
uint8_t ps16dz_bright = 0;
|
||||
uint64_t ps16dz_seq = 1529000000000;
|
||||
//uint64_t ps16dz_seq = 1529000000000;
|
||||
uint64_t ps16dz_seq = 0;
|
||||
|
||||
char ps16dz_tx_buffer[PS16DZ_BUFFER_SIZE]; // Serial transmit buffer
|
||||
char ps16dz_rx_buffer[PS16DZ_BUFFER_SIZE]; // Serial receive buffer
|
||||
|
|
Loading…
Reference in New Issue