Skip to content

Commit 5666c46

Browse files
authored
Merge branch 'master' into adding-ams
2 parents d777c3a + cc028b6 commit 5666c46

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CircuitPython_Pyloton/pyloton.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,29 +345,30 @@ def update_display(self, hr_service):
345345
speed, cadence = self.read_s_and_c()
346346

347347
if self.heart_enabled:
348-
hr_label = self._label_maker('{} bpm'.format(heart), 50, self.heart_y) # 75
348+
hr_label = self._label_maker('{} bpm'.format(heart), 50, 75) # 75
349349
if self.setup:
350350
self.splash[3] = hr_label
351351
else:
352352
self.splash.append(hr_label)
353353

354354
if self.speed_enabled:
355-
sp_label = self._label_maker('{} mph'.format(speed), 50, self.speed_y) # 120
355+
sp_label = self._label_maker('{} mph'.format(speed), 50, 120) # 120
356356
if self.setup:
357357
self.splash[4] = sp_label
358358
else:
359359
self.splash.append(sp_label)
360360

361361

362362
if self.cadence_enabled:
363-
cad_label = self._label_maker('{} rpm'.format(cadence), 50, self.cad_y) # 165
363+
cad_label = self._label_maker('{} rpm'.format(cadence), 50, 165) # 165
364364
if self.setup:
365365
self.splash[5] = cad_label
366366
else:
367367
self.splash.append(cad_label)
368368

369369
if self.ams_enabled:
370-
ams_label = self._label_maker('{}'.format(self.ams.title), 50, self.ams_y, font=self.arial16) # 210
370+
ams_label = self._label_maker('{}'.format(self.ams.title), 50, 210, font=self.arial16) # 210
371+
371372
if self.setup:
372373
self.splash[6] = ams_label
373374
else:

0 commit comments

Comments
 (0)