FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adjust sequential shift calibration wording by dmadison · Pull Request #22 · dmadison/Sim-Racing-Arduino · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cpp  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
12 changes: 7 additions & 5 deletions src/SimRacing.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1581,9 +1581,9 @@ void LogitechShifterG25::serialCalibrationSequential(Stream& iface) {
float releasePoint = LogitechShifterG25::CalReleasePoint;

const uint8_t NumPoints = 3;
const char* directions[2] = {
"up",
"down",
const char* directions[2][2] = {
{ "away from you", "up" },
{ "towards you", "down" },
};
int data[NumPoints];

Expand All @@ -1596,8 +1596,10 @@ void LogitechShifterG25::serialCalibrationSequential(Stream& iface) {
iface.print(F("Leave the gear shifter in neutral"));
}
else {
iface.print(F("Please move the gear shifter to sequentially shift "));
iface.print(directions[i - 1]);
iface.print(F("Please move the gear shifter "));
iface.print(directions[i - 1][0]);
iface.print(F(" to sequentially shift "));
iface.print(directions[i - 1][1]);
iface.print(F(" and hold it there"));
}
iface.println(F(". Send any character to continue."));
Expand Down

Back | FazBrowse Home | New Git URL