]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
lcd1602 floating math fix
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Wed, 29 Dec 2021 22:33:29 +0000 (22:33 +0000)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Wed, 29 Dec 2021 22:33:29 +0000 (22:33 +0000)
_external/lcd1602.lua

index 5c846cbe650fb4183fe90b931b7715488c056fa0..ed320f2993d942598767cc9c0da07f255c268ff4 100644 (file)
@@ -50,7 +50,7 @@ end
 
 -- return command to set cursor at row/col
 local locate = function(self, row, col)
-  return col + _offsets[row]
+  return math.floor(col + _offsets[row])
 end
 
 -- define custom char 0-7