Merge pull request #183 from Onran0/main

Bit Converter small fix
This commit is contained in:
MihailRis
2024-03-14 19:22:24 +03:00
committed by GitHub
+2 -2
View File
@@ -196,7 +196,7 @@ function bit_converter.bytes_to_string(bytes)
local str = ""
for i = 1, len do
str = str..string.char(bytes[i])
str = str..string.char(bytes[i + 2])
end
return str
@@ -265,4 +265,4 @@ function bit_converter.bytes_to_int16(bytes)
return bit_converter.bytes_to_uint16(bytes) - MAX_INT16
end
return bit_converter
return bit_converter