From dc3e06ba3488d94cd72e1687fc7c23f39921a5da Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 15 Nov 2011 20:13:54 +0000 Subject: [PATCH] Fixup .pgmf support (set mode) The .pgmf file support needed to set the workout mode but that was missed. Now tested the Train View with some Tacx ErgoVideos and they work perfectly. --- src/ErgFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ErgFile.cpp b/src/ErgFile.cpp index 01d90e84e..1a23566e0 100644 --- a/src/ErgFile.cpp +++ b/src/ErgFile.cpp @@ -136,10 +136,10 @@ void ErgFile::parseTacx() input>>general.brakeCategory; switch (general.wattSlopePulse) { case 0 : - format = ERG; + mode = format = ERG; break; case 1 : - format = CRS; + mode = format = CRS; break; default: happy = false;