Browse Source

Fix for the right start index for event releases.

xmkb
Pete Johanson 4 years ago
parent
commit
cd30f440d9
  1. 2
      app/src/event_manager.c

2
app/src/event_manager.c

@ -22,7 +22,7 @@ int zmk_event_manager_handle_from(struct zmk_event_header *event, u8_t start_ind @@ -22,7 +22,7 @@ int zmk_event_manager_handle_from(struct zmk_event_header *event, u8_t start_ind
{
int ret = 0;
u8_t len = __event_subscriptions_end - __event_subscriptions_start;
for (int i = start_index + 1; i < len; i++) {
for (int i = start_index; i < len; i++) {
struct zmk_event_subscription *ev_sub = __event_subscriptions_start + i;
if (ev_sub->event_type == event->event) {
ret = ev_sub->listener->callback(event);

Loading…
Cancel
Save