Skip to content

Commit

Permalink
fix sample code in README
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Sakamoto <[email protected]>
  • Loading branch information
takaswie committed Feb 7, 2024
1 parent e80fd22 commit 739709b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ Example of Python3 with PyGobject
from struct import unpack

node = Hinawa.FwNode.new()
node.open('/dev/fw1')
_ = node.open('/dev/fw1', 0)

ctx = GLib.MainContext.new()
src = node.create_source()
_, src = node.create_source()
src.attach(ctx)

dispatcher = GLib.MainLoop.new(ctx, False)
Expand Down

0 comments on commit 739709b

Please sign in to comment.