richhyde@HWD-LT-RHyde usb_4_mic_array % python3 tuning.py -r
name value
array(‘B’, [0, 0, 0, 0, 229, 63, 219, 33])
Traceback (most recent call last):
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 197, in
main()
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 181, in main
print(’{:24} {}’.format(name, dev.read(name)))
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 110, in read
response = struct.unpack(b’ii’, response.tostring())
AttributeError: ‘array.array’ object has no attribute ‘tostring’
richhyde@HWD-LT-RHyde usb_4_mic_array % python3 --version
Python 3.9.1
usb_4_mic_array % python3 tuning.py AGCGAIN
array(‘B’, [212, 55, 165, 84, 227, 255, 255, 255])
Traceback (most recent call last):
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 197, in
main()
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 188, in main
print(’{}: {}’.format(name, dev.read(name)))
File “/Users/richhyde/Documents/Seeed/usb_4_mic_array/tuning.py”, line 110, in read
response = struct.unpack(b’ii’, response.tostring())
AttributeError: ‘array.array’ object has no attribute ‘tostring’
richhyde@HWD-LT-RHyde usb_4_mic_array %