Remove 50ms sleep time, it doesn't help

This commit is contained in:
Pim van Pelt
2018-11-01 14:12:13 +01:00
parent d673cda325
commit f1614f3e6e

View File

@ -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);