permngr: Dont send out internal events on ubus.

We should not send the button pressed event as that is an internal thing.
we send button pressed when the button is actually released and we
never send button released.

To the reset of the system the only thing that can happen is button pressed.
This commit is contained in:
Kenneth Johansson 2015-11-30 12:53:44 +01:00
parent 1b94f625ea
commit c5d25fdfad

View file

@ -299,7 +299,7 @@ static void button_handler(struct uloop_timeout *timeout)
if (! timer_started(drv_node)) {
timer_start(drv_node);
DBG(1, " %s pressed", drv_node->drv->name);
button_ubus_interface_event(global_ubus_ctx, node->name, BUTTON_PRESSED);
// button_ubus_interface_event(global_ubus_ctx, node->name, BUTTON_PRESSED);
}
if(timer_valid(drv_node, node->minpress, 0))
led_pressindicator_set();