aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libhomescreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhomescreen.cpp b/src/libhomescreen.cpp
index 24487e8..b5a534d 100644
--- a/src/libhomescreen.cpp
+++ b/src/libhomescreen.cpp
@@ -759,7 +759,7 @@ int LibHomeScreen::getEventType(const char *event)
break;
}
}
- return (i + 1) < Event_Max ? i : Event_Max;
+ return (i + 1) < Event_Max ? (i + 1) : Event_Max;
}
static bool has_verb(const string& verb)