summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018/statemachine.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb-i2c-sl018/statemachine.c')
-rw-r--r--usb-i2c-sl018/statemachine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-i2c-sl018/statemachine.c b/usb-i2c-sl018/statemachine.c
index fac0964..9a43385 100644
--- a/usb-i2c-sl018/statemachine.c
+++ b/usb-i2c-sl018/statemachine.c
@@ -111,6 +111,9 @@ void statemachine_task_limits(void)
void statemachine_task_event(void)
{
event_t event = eventqueue_pop();
+ if(event == none)
+ return;
+
switch(state) {
case closing:
case opening: