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.
This commit is contained in:
Mark Liversedge
2011-11-15 20:13:54 +00:00
parent 18a0b27cc4
commit dc3e06ba34

View File

@@ -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;