From df22fd92dd27a860735b7905c98ecd02781ff78f Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 8 Apr 2016 13:16:05 -0700 Subject: [PATCH] Move for clarity --- ilt1000.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ilt1000.py b/ilt1000.py index f6815e1..63a56ff 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -170,6 +170,10 @@ class ILT1000(object): ret = self._SendCommand('set100perc') return float(ret) + def GetIrradiance(self): + ret = self._SendCommand('getirradiance') + return float(ret) / 1000 + def GetDarkMode(self): return int(self._SendCommand('getdarkmode')) @@ -196,10 +200,6 @@ class ILT1000(object): ret = self._SendCommand('getfactorydark') return [float(x) / 1000000 for x in ret.split()] - def GetIrradiance(self): - ret = self._SendCommand('getirradiance') - return float(ret) / 1000 - def GetClockFrequencyHz(self): ret = self._SendCommand('getclockfreq') return float(ret) / 100