diff --git a/src/events.c b/src/events.c index d6d49ec..08f1984 100644 --- a/src/events.c +++ b/src/events.c @@ -51,7 +51,6 @@ #include /* for free, malloc */ #include /* for memcpy, memset */ -static void clear_dirty_reads(struct wiimote_t* wm); static void event_data_read(struct wiimote_t* wm, byte* msg); static void event_data_write(struct wiimote_t *wm, byte *msg); static void event_status(struct wiimote_t* wm, byte* msg); @@ -141,7 +140,7 @@ void idle_cycle(struct wiimote_t* wm) { * * @param wm Pointer to a wiimote_t structure. */ -static void clear_dirty_reads(struct wiimote_t* wm) { +void clear_dirty_reads(struct wiimote_t* wm) { struct read_req_t* req = wm->read_req; while (req && req->dirty) { diff --git a/src/events.h b/src/events.h index fde16a3..9300193 100644 --- a/src/events.h +++ b/src/events.h @@ -56,8 +56,9 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len); void disable_expansion(struct wiimote_t* wm); void propagate_event(struct wiimote_t* wm, byte event, byte* msg); - void idle_cycle(struct wiimote_t* wm); + +void clear_dirty_reads(struct wiimote_t* wm); /** @} */ #endif /* EVENTS_H_INCLUDED */