Skip to content

Commit

Permalink
fix error messages #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Barth committed Dec 19, 2024
1 parent 3cb7be0 commit 34866ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ is negative it indicates an error. On error a pigpio
exception will be raised if exceptions is true.
"""
function _u2i(x::UInt32)
v = convert(Int32, x)
v = reinterpret(Int32, x)
if v < 0
if exceptions
error(error_text(v))
Expand Down

0 comments on commit 34866ff

Please sign in to comment.