Skip to content

Commit

Permalink
extent write
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Dec 19, 2024
1 parent 17efccc commit b48be39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PiGPIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module PiGPIO

export Pi

import Base: run
import Base: run, write
using Sockets

include("constants.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/spiSerial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function spi_open(self::Pi, spi_channel, baud, spi_flags=0)
## extension ##
# I spi_flags
extents=IOBuffer()
write(extents, spi_flags::Cint)
write(extents, Cint(spi_flags))
return _u2i(_pigpio_command_ext(
self.sl, _PI_CMD_SPIO, spi_channel, baud, 4, extents))
end
Expand Down

0 comments on commit b48be39

Please sign in to comment.