You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before submitting this issue
[x] Have you tried using the latest version of the library?
[x] Have you checked this has not already been submitted and/or resolved?
[x] If you are requesting help a better choice may be the Arduino forum
Subject of the issue
Add an increment/decrement user defined step in the inputs for Integers (instead of incDelta=1 as it is hard defined in void MD_Menu::handleInput.
You could use range[0 or 1].power for that purpose as it is not used in MD_Menu::processInt.
I did that and it works well:
bool MD_Menu::processInt(userNavAction_t nav, mnuInput_t *mInp, bool rtfb, uint16_t incDelta)
// Processing for Integer (all sizes) value input
// Return true when the edit cycle is completed
{
bool endFlag = false;
bool update = false;
int step_int = mInp->range[0].power;
if (step_int == 0) {
step_int=incDelta;
}
and then replace incDelta by step_int in the rest of processInt.
The text was updated successfully, but these errors were encountered:
IMPORTANT
Before submitting this issue
[x] Have you tried using the latest version of the library?
[x] Have you checked this has not already been submitted and/or resolved?
[x] If you are requesting help a better choice may be the Arduino forum
Subject of the issue
Add an increment/decrement user defined step in the inputs for Integers (instead of incDelta=1 as it is hard defined in void MD_Menu::handleInput.
You could use range[0 or 1].power for that purpose as it is not used in MD_Menu::processInt.
I did that and it works well:
bool MD_Menu::processInt(userNavAction_t nav, mnuInput_t *mInp, bool rtfb, uint16_t incDelta)
// Processing for Integer (all sizes) value input
// Return true when the edit cycle is completed
{
bool endFlag = false;
bool update = false;
int step_int = mInp->range[0].power;
if (step_int == 0) {
step_int=incDelta;
}
and then replace incDelta by step_int in the rest of processInt.
The text was updated successfully, but these errors were encountered: