Skip to content

Commit d2ac777

Browse files
author
A Robinson
committed
fixed bug which meant latest RPi3 with latest raspbian was looking at /dev/ttyS0 and not /dev/ttyACM0
1 parent b2ae1dc commit d2ac777

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Change Log
22
==========
33

4+
v0.9.1
5+
------
6+
- removed conditional checking RPi version; now always uses /dev/ttyACM0
7+
48
v0.9.0
59
------
610
- Added `scroll_sprite` method.

codebug_tether/platform.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ def get_rpi_revision():
5454
return re.sub('Revision\t: ([a-z0-9]+)\n', r'\1', line)
5555

5656
rpi_revision = get_rpi_revision()
57-
if (rpi_revision and
58-
(rpi_revision != 'Beta') and
59-
(int('0x'+rpi_revision, 16) >= 0xa02082)):
60-
# RPi 3 and above
61-
return '/dev/ttyS0'
62-
else:
63-
# RPi 2 and below
64-
return '/dev/ttyACM0'
57+
# if (rpi_revision and
58+
# (rpi_revision != 'Beta') and
59+
# (int('0x'+rpi_revision, 16) >= 0xa02082)):
60+
# # RPi 3 and above
61+
# return '/dev/ttyS0'
62+
# else:
63+
# # RPi 2 and below
64+
# return '/dev/ttyACM0'
65+
return '/dev/ttyACM0'

codebug_tether/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.0'
1+
__version__ = '0.9.1'

0 commit comments

Comments
 (0)