mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Code Cleanup: win32 fixups
.. Bin2RideFile constants might be an issue? .. otherwise just unused variables
This commit is contained in:
@@ -504,6 +504,10 @@ ANT::associateControlChannels() {
|
||||
bool
|
||||
ANT::discover(QString name)
|
||||
{
|
||||
#ifdef WIN32
|
||||
Q_UNUSED(name);
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
|
||||
// All we can do for USB1 sticks is see if the cp210x driver module
|
||||
|
||||
@@ -168,12 +168,12 @@ struct Bin2FileReaderState
|
||||
if (alt == 0x8000)
|
||||
alt = 0;
|
||||
|
||||
if ((long)lat == -2147483648L) //2147483648
|
||||
if ((long)lat == (long)0x80000000) //2147483648
|
||||
lat = 0;
|
||||
else
|
||||
lat = lat/10000000.0;
|
||||
|
||||
if ((long)lng == -2147483648L) //0x80000000
|
||||
if ((long)lng == (long)0x80000000) //0x80000000
|
||||
lng = 0;
|
||||
else
|
||||
lng = lng/10000000.0;
|
||||
|
||||
@@ -939,7 +939,7 @@ int Computrainer::rawRead(uint8_t bytes[], int size)
|
||||
int rc=0;
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
Q_UNUSED(size);
|
||||
// Readfile deals with timeouts and readyread issues
|
||||
DWORD cBytes;
|
||||
rc = ReadFile(devicePort, bytes, 7, &cBytes, NULL);
|
||||
|
||||
Reference in New Issue
Block a user