Merge pull request #619 from PavelSindler/feedmultiply_fix

fixed possible feedmultiply change
This commit is contained in:
mkbel 2018-04-13 13:52:03 +02:00 committed by GitHub
commit e941377d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
* @param menu
* @param position selected position in menu being pushed
*/
void MenuStack::push(menuFunc_t menu, uint8_t position)
void MenuStack::push(menuFunc_t menu, int8_t position)
{
if (m_index >= max_depth) return;
m_stack[m_index].menu = menu;

View file

@ -19,10 +19,10 @@ public:
struct Record
{
menuFunc_t menu;
uint8_t position;
int8_t position;
};
MenuStack():m_stack(),m_index(0) {}
void push(menuFunc_t menu, uint8_t position);
void push(menuFunc_t menu, int8_t position);
Record pop();
void reset(){m_index = 0;}
private: