Update autorotate.py

This commit is contained in:
AykoPoel 2015-01-01 14:55:26 +01:00
parent 700ef1c102
commit 7901d8dbd9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ freq = 10.0 # frequency to read the accelerometer
# Look for accelerometer
while count <= 9:
if os.path.exists('/sys/bus/iio/devices/iio:device' + str(count) + '/in_accel_scale') == True:
dpath = '/sys/bus/iio/devices/iio:device0/' # directory of accelerometer device (iio)
dpath = '/sys/bus/iio/devices/iio:device' + str(count) + '/' # directory of accelerometer device (iio)
break
count = count + 1
#print(dpath)