## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-#
# Melexis MLX90614 Infrared Thermometer protocol decoder
-#
import sigrokdecode as srd
inputs = ['i2c']
outputs = ['mlx90614']
probes = []
- extra_probes = []
+ optional_probes = []
options = {}
annotations = [
['Celsius', 'Temperature in degrees Celsius'],
else:
kelvin = (self.data[0] | (self.data[1] << 8)) * 0.02
celsius = kelvin - 273.15
- self.putx([0, ['Temperature: %d °C' % celsius]])
- self.putx([1, ['Temperature: %d °K' % kelvin]])
+ self.putx([0, ['Temperature: %3.2f °C' % celsius]])
+ self.putx([1, ['Temperature: %3.2f °K' % kelvin]])
self.state = 'IGNORE START REPEAT'
self.data = []
else: