diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-04-27 16:29:53 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-04-27 16:29:53 +0300 |
commit | 9ead98ce7dc8a4fe1454a7003b14fee1aab51941 (patch) | |
tree | f63045845dc673e2ca1330c15695c3c80cb99dfa /src/Display | |
parent | 59b942eae8cca6762a6033d7115ee2663a2dd395 (diff) |
Various
Use new NumericConverter, StrToInt32 and StrToUint32 functions in
RRFLibraries
Added DueXn i2C transaction counter
Replaced strptime by SafeStrptime
Diffstat (limited to 'src/Display')
-rw-r--r-- | src/Display/Menu.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Display/Menu.cpp b/src/Display/Menu.cpp index 07870011..6a707800 100644 --- a/src/Display/Menu.cpp +++ b/src/Display/Menu.cpp @@ -288,35 +288,35 @@ const char *Menu::ParseMenuLine(char * const commandWord) noexcept break; case 'R': - row = SafeStrtoul(args, &args); + row = StrToU32(args, &args); break; case 'C': - column = SafeStrtoul(args, &args); + column = StrToU32(args, &args); break; case 'F': - fontNumber = min<unsigned int>(SafeStrtoul(args, &args), lcd.GetNumFonts() - 1); + fontNumber = min<unsigned int>(StrToU32(args, &args), lcd.GetNumFonts() - 1); break; case 'V': - xVis = SafeStrtoul(args, &args); + xVis = StrToU32(args, &args); break; case 'D': - decimals = SafeStrtoul(args, &args); + decimals = StrToU32(args, &args); break; case 'N': - nparam = SafeStrtoul(args, &args); + nparam = StrToU32(args, &args); break; case 'W': - width = SafeStrtoul(args, &args); + width = StrToU32(args, &args); break; case 'H': - alignment = SafeStrtoul(args, &args); + alignment = StrToU32(args, &args); break; case '"': // a string with no letter is a T argument |