Skip to content

Commit 83f9110

Browse files
committed
Remove mode check on analog read
The pin mode is automatically configured in firmware
1 parent 062f944 commit 83f9110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbot/arduino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def analog_value(self) -> float:
358358
ADC_MIN = 0
359359

360360
self._check_if_disabled()
361-
if self.mode not in ANALOG_READ_MODES:
362-
raise IOError(f'Analog read is not supported in {self.mode}')
361+
# if self.mode not in ANALOG_READ_MODES:
362+
# raise IOError(f'Analog read is not supported in {self.mode}')
363363
if not self._supports_analog:
364364
raise IOError('Pin does not support analog read')
365365
response = self._serial.query(f'PIN:{self._index}:ANALOG:GET?')

0 commit comments

Comments
 (0)