Remove 50ms sleep time, it doesn't help
This commit is contained in:
@ -155,9 +155,6 @@ void channel_set(int idx, bool state) {
|
||||
s_channels[idx].relay_state = state;
|
||||
if (s_channels[idx].relay_gpio != GPIO_INVALID) {
|
||||
mgos_gpio_write(s_channels[idx].relay_gpio, state);
|
||||
// We sleep for 50ms because inductive loads cause an RF spike which trips
|
||||
// capacitive sensors
|
||||
mgos_msleep(50);
|
||||
}
|
||||
if (s_channels[idx].led_gpio != GPIO_INVALID) {
|
||||
mgos_gpio_write(s_channels[idx].led_gpio, state);
|
||||
|
Reference in New Issue
Block a user