Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-04-27 16:29:53 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-04-27 16:29:53 +0300
commit9ead98ce7dc8a4fe1454a7003b14fee1aab51941 (patch)
treef63045845dc673e2ca1330c15695c3c80cb99dfa /src/Display
parent59b942eae8cca6762a6033d7115ee2663a2dd395 (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.cpp16
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