torfbolt / PyDAQFlex

Python implementation of Measurement Computing's DAQFlex command framework
15 stars 14 forks source link

Add method to return all attached devices. #4

Closed mickm closed 9 years ago

mickm commented 9 years ago

Hi! I found this handy when writing a Munin plugin for a machine that has several devices connected to it. e.g.

for serial_number in USB_2001_TC.find_serial_numbers():
    device = USB_2001_TC(serial_number)
    # ...
torfbolt commented 9 years ago

Looks good, thanks for the contribution. Before I merge, could you please fix the indentation to conform with PEP8 guidelines (4 spaces)? Thanks, David

mickm commented 9 years ago

All set!