Skip to content

Commit

Permalink
Merge pull request #32 from WouterJD/pr/26
Browse files Browse the repository at this point in the history
Update FortiusAnt.py
  • Loading branch information
WouterJD authored Mar 3, 2020
2 parents 724db8a + c20630f commit 05e1f5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pythoncode/FortiusAnt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#-------------------------------------------------------------------------------
# Version info
#-------------------------------------------------------------------------------
__version__ = "2020-03-02"
__version__ = "2020-03-03"
WindowTitle = "Fortius Antifier v2.3"
# 2020-03-03 Conversion error in SpeedKmh when trainer USB returns an error
# ReceiveFromTrainer() returns "Not found" in that case
# 2020-03-03 Format error resolved
# 2020-03-02 iMagic supported, thanks to Julian Pfefferkorn
# 2020-02-27 FE data page 252 ignored
Expand Down Expand Up @@ -519,8 +521,7 @@ def Tacx2Dongle(self):
#---------------------------------------------------------------
# Show results
#---------------------------------------------------------------
if SpeedKmh == "Not Found":
SpeedKmh = 0 # resolve antifier legacy (error-message in numeric)
if SpeedKmhT == "Not Found":
SpeedKmhT, PedalEcho, HeartRateT, CurrentPower, CadenceT, Resistance, Buttons, Axis = 0, 0, 0, 0, 0, 0, 0, 0, 0
SetTacxMsg(self, 'Cannot read from trainer')
else:
Expand Down

0 comments on commit 05e1f5b

Please sign in to comment.