37bbd8e522bd300854a5c9660e24662ff2bf95e4,Software/Python/easygopigo3.py,DHTSensor,read_temperature,#DHTSensor#,2581

Before Change



        _grab_read()
        temp = DHT.dht(self.sensor_type)[0]
        _release_read()

        if temp == -2:
            return "Bad reading, trying again"
        elif temp == -3:

After Change



        from di_sensors import DHT

        self.acquire()
        temp = DHT.dht(self.sensor_type)[0]
        self.release()

        if temp == -2:
            return "Bad reading, trying again"
        elif temp == -3:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_temperature


Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_humidity


Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_dht


Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: _readingValues