Skip to content

Commit

Permalink
Fixed bits() on RO register
Browse files Browse the repository at this point in the history
  • Loading branch information
gdyr committed Feb 9, 2018
1 parent ddd90d2 commit 68f0cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/hardware/register.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ end
--- Metatables for the three different types of register
local mt = {
RO = {__index = { read=Register.read, wait=Register.wait,
reset=Register.noop, print=Register.print},
bits=ro_bits, byte=ro_byte,
reset=Register.noop, print=Register.print,
bits=ro_bits, byte=ro_byte},
__call = Register.read, __tostring = Register.__tostring},
RW = {__index = { read=Register.read, write=Register.write, wait=Register.wait,
set=Register.set, clr=Register.clr, reset=Register.noop,
Expand Down

0 comments on commit 68f0cd5

Please sign in to comment.