view py/sensor.py @ 567:f93290b37abf

chown gpio files too
author Matt Johnston <matt@ucc.asn.au>
date Tue, 10 Nov 2015 21:10:57 +0800
parents 0cc7f2dda0e8
children
line wrap: on
line source

import os

def make_sensor(server):
    if server.test_mode():
        import sensor_test
        return sensor_test.SensorTest(server)
    else:
        import sensor_ds18b20
        return sensor_ds18b20.SensorDS18B20(server)