63
63
)
64
64
"""Namedtuple for measurement values.
65
65
66
- .. py :attribute:: CSCMeasurementValues. cumulative_wheel_revolutions
66
+ .. :attribute:: cumulative_wheel_revolutions:
67
67
68
68
Cumulative wheel revolutions (int).
69
69
70
- .. py :attribute:: CSCMeasurementValues. last_wheel_event_time
70
+ .. :attribute:: last_wheel_event_time:
71
71
72
72
Time (int), units in 1024ths of a second, when last wheel event was measured.
73
73
This is a monotonically increasing clock value, not an interval.
74
74
75
- .. py :attribute:: CSCMeasurementValues.cumulative_wheel_revolutions
75
+ .. :attribute:: cumulative_crank_revolutions:
76
76
77
77
Cumulative crank revolutions (int).
78
78
79
- .. py :attribute:: CSCMeasurementValues.last_wheel_event_time
79
+ .. :attribute:: last_crank_event_time:
80
80
81
81
Time (int), units in 1024ths of a second, when last crank event was measured.
82
82
This is a monotonically increasing clock value, not an interval.
@@ -145,7 +145,9 @@ class CyclingSpeedAndCadenceService(Service):
145
145
146
146
def __init__ (self , service = None ):
147
147
super ().__init__ (service = service )
148
- self ._measurement_buf = bytearray (self .csc_measurement .packet_size ) #pylint: disable=no-member
148
+ self ._measurement_buf = bytearray (
149
+ self .csc_measurement .packet_size # pylint: disable=no-member
150
+ )
149
151
150
152
@property
151
153
def measurement_values (self ):
@@ -168,7 +170,7 @@ def measurement_values(self):
168
170
#
169
171
170
172
buf = self ._measurement_buf
171
- packet_length = self .csc_measurement .readinto (buf ) # pylint: disable=no-member
173
+ packet_length = self .csc_measurement .readinto (buf ) # pylint: disable=no-member
172
174
if packet_length == 0 :
173
175
return None
174
176
flags = buf [0 ]
0 commit comments