mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
tabs to spaces
.. in Computrainer.cpp and TrainTool.cpp
This commit is contained in:
@@ -879,9 +879,9 @@ int Computrainer::openPort()
|
||||
QString portSpec;
|
||||
int portnum = deviceFilename.midRef(3).toString().toInt();
|
||||
if (portnum < 10)
|
||||
portSpec = deviceFilename;
|
||||
portSpec = deviceFilename;
|
||||
else
|
||||
portSpec = "\\\\.\\" + deviceFilename;
|
||||
portSpec = "\\\\.\\" + deviceFilename;
|
||||
wchar_t deviceFilenameW[32]; // \\.\COM32 needs 9 characters, 32 should be enough?
|
||||
MultiByteToWideChar(CP_ACP, 0, portSpec.toAscii(), -1, (LPWSTR)deviceFilenameW,
|
||||
sizeof(deviceFilenameW));
|
||||
|
||||
@@ -360,7 +360,7 @@ TrainTool::TrainTool(MainWindow *parent, const QDir &home) : GcWindow(parent), h
|
||||
recordFile = NULL;
|
||||
status = 0;
|
||||
status |= RT_MODE_ERGO; // ergo mode by default
|
||||
mode = ERG;
|
||||
mode = ERG;
|
||||
|
||||
displayWorkoutLap = displayLap = 0;
|
||||
pwrcount = 0;
|
||||
@@ -474,9 +474,9 @@ TrainTool::configChanged()
|
||||
if (Devices.count()) {
|
||||
deviceTree->setCurrentItem(allDevices->child(0));
|
||||
}
|
||||
// And select default workout to Ergo
|
||||
QModelIndex firstWorkout = sortModel->index(0, 0, QModelIndex());
|
||||
workoutTree->setCurrentIndex(firstWorkout);
|
||||
// And select default workout to Ergo
|
||||
QModelIndex firstWorkout = sortModel->index(0, 0, QModelIndex());
|
||||
workoutTree->setCurrentIndex(firstWorkout);
|
||||
// Athlete
|
||||
FTP=285; // default to 285 if zones are not set
|
||||
int range = main->zones()->whichRange(QDate::currentDate());
|
||||
@@ -1075,7 +1075,7 @@ void TrainTool::guiUpdate() // refreshes the telemetry
|
||||
displayHeartRate = rtData.getHr();
|
||||
displaySpeed = rtData.getSpeed();
|
||||
load = rtData.getLoad();
|
||||
slope = rtData.getSlope();
|
||||
slope = rtData.getSlope();
|
||||
|
||||
// virtual speed
|
||||
double crr = 0.004f; // typical for asphalt surfaces
|
||||
|
||||
Reference in New Issue
Block a user