Skip to content

Commit

Permalink
fixed issue error: could not convert from 'MenuItem*' to 'MenuItem'
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Jul 27, 2020
1 parent 03c1990 commit 7de9c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LcdMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void LcdMenu::updateTimer() {
*
* @return `MenuItem` - item at `position`
*/
MenuItem LcdMenu::getItemAt(uint8_t position) {
MenuItem* LcdMenu::getItemAt(uint8_t position) {
return &currentMenuTable[position];
}
/**
Expand Down
2 changes: 1 addition & 1 deletion src/LcdMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ void updateTimer();
*
* @return `MenuItem` - item at `position`
*/
MenuItem getItemAt(uint8_t position);
MenuItem* getItemAt(uint8_t position);
};
#endif

0 comments on commit 7de9c74

Please sign in to comment.