Explorar o código

Merge pull request #775 from iWladi/patch-1

Update dht_lib.lua
Terry Ellison %!s(int64=8) %!d(string=hai) anos
pai
achega
d762696119
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lua_modules/dht_lib/dht_lib.lua

+ 1 - 1
lua_modules/dht_lib/dht_lib.lua

@@ -103,7 +103,7 @@ function M.read(pin)
 
   for i = 1, 8, 1 do -- Byte[3]
     if (bitStream[i+24] > 3) then
-      byte_2 = byte_2 + 2 ^ (8 - i)
+      byte_3 = byte_2 + 2 ^ (8 - i)
     end
   end