Skip to content

Commit

Permalink
add missing return (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSloppy authored Mar 6, 2024
1 parent 74ce55a commit 2c8af4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modes/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
// allows you to temporarily override buttons and other types of events.
struct ModeInterface {
virtual void mode_activate(bool onreturn) {}
virtual bool mode_Event2(enum BUTTON button, EVENT event, uint32_t modifiers) {}
virtual bool mode_Event2(enum BUTTON button, EVENT event, uint32_t modifiers) {
return false;
}
virtual void mode_Loop() {}
virtual bool mode_Parse(const char *cmd, const char* arg) { return false; }

Expand Down

0 comments on commit 2c8af4e

Please sign in to comment.