LOCAL void ICACHE_FLASH_ATTR button_long_press() { button_set_response("Long Press"); debug("CONFIG: Restore defaults\n"); user_config_restore_defaults(); user_config_load(); }
LOCAL void ICACHE_FLASH_ATTR button_long_release() { button_set_response("Long Release"); }
LOCAL void ICACHE_FLASH_ATTR button_short_release() { button_set_response("Short Release"); setTimeout(memory_info, NULL, 100); }
LOCAL void ICACHE_FLASH_ATTR button_press() { button_set_response("Press"); }
LOCAL void ICACHE_FLASH_ATTR button_long_press() { button_set_response("Long Press"); setTimeout(button_close_connections, NULL, 500); setTimeout(button_restore_defaults, NULL, 1000); }
LOCAL void ICACHE_FLASH_ATTR button_press() { button_set_response("Press"); #if DEVICE == PLUG user_relay_toggle(); #endif }