diff options
Diffstat (limited to 'temt6000.lua')
-rw-r--r-- | temt6000.lua | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/temt6000.lua b/temt6000.lua index 69c7110..511e5aa 100644 --- a/temt6000.lua +++ b/temt6000.lua @@ -1,17 +1,7 @@ local temt6000 = {} function temt6000.read() - local raw = adc.read(0) - if raw < 70 then - return raw, raw - end - if raw == 1024 then - return 2500, raw - end - if raw < 300 then - return (raw-70) * 2, raw - end - return raw * 2, raw + return adc.read(0) end return temt6000 |