File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -253,14 +253,14 @@ def SensorsInfo(self):
253
253
if value ['type' ] == 'Distance' :
254
254
value ['Centimeter' ] = self .CallDeviceFunction (sensor .getCentimeter )
255
255
value ['Inch' ] = self .CallDeviceFunction (sensor .getInch )
256
- if value ['type' ] in ('ADC' , 'DAC' , 'PWM' ):
256
+ if value ['type' ] in ('ADC' , 'DAC' ):
257
257
value ['channelCount' ] = self .CallDeviceFunction (sensor .analogCount )
258
258
value ['maxInteger' ] = self .CallDeviceFunction (sensor .analogMaximum )
259
259
value ['resolution' ] = self .CallDeviceFunction (sensor .analogResolution )
260
260
value ['allInteger' ] = self .CallDeviceFunction (sensor .analogReadAll )
261
261
value ['allVolt' ] = self .CallDeviceFunction (sensor .analogReadAllVolt )
262
262
value ['allFloat' ] = self .CallDeviceFunction (sensor .analogReadAllFloat )
263
- if value ['type' ] in ( 'DAC' ) :
263
+ if value ['type' ] == 'DAC' :
264
264
value ['vref' ] = self .CallDeviceFunction (sensor .analogReference )
265
265
if value ['type' ] == 'PWM' :
266
266
value ['channelCount' ] = self .CallDeviceFunction (sensor .pwmCount )
You can’t perform that action at this time.
0 commit comments