Skip to content

Commit

Permalink
gluon-core: convert 5th byte back to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Dec 14, 2024
1 parent 7dbcd6c commit e45ef70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function M.generate_mac(i)
local overflow = math.floor(i/8)
m5 = math.fmod(m5 + overflow, 256)

return string.format('%02x:%s:%s:%s:%s:%02x', m1, m2, m3, m4, m5, m6)
return string.format('%02x:%s:%s:%s:%02x:%02x', m1, m2, m3, m4, m5, m6)
end

function M.get_uptime()
Expand Down

0 comments on commit e45ef70

Please sign in to comment.